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