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