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