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