Class UpdateCategoryCommandHandler
Namespace: Restaurant.Application.Requests.Formula
Assembly: Restaurant.Application.dll
public sealed class UpdateCategoryCommandHandler : IRequestHandler<UpdateFormulaCommand, Result<Formula>>
Inheritance
object ← UpdateCategoryCommandHandler
Implements
IRequestHandler<UpdateFormulaCommand, Result<Formula\>\>
Inherited Members
object.Equals\(object?\), object.Equals\(object?, object?\), object.GetHashCode\(\), object.GetType\(\), object.ReferenceEquals\(object?, object?\), object.ToString\(\)
Constructors
UpdateCategoryCommandHandler\(IFormulaRepository, IAuthorizationService, IHttpContextAccessor, IUnitOfWork\)
public UpdateCategoryCommandHandler(IFormulaRepository formulaRepository, IAuthorizationService authorizationService, IHttpContextAccessor httpContextAccessor, IUnitOfWork unitOfWork)
Parameters
formulaRepository IFormulaRepository
authorizationService IAuthorizationService
httpContextAccessor IHttpContextAccessor
unitOfWork IUnitOfWork
Methods
Handle\(UpdateFormulaCommand, CancellationToken\)
Handles a request
public Task<Result<Formula>> Handle(UpdateFormulaCommand command, CancellationToken cancellationToken)
Parameters
command UpdateFormulaCommand
cancellationToken CancellationToken
Cancellation token
Returns
Task <Result<Formula\>\>
Response from the request
Last modified: 21 May 2024