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