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