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