Owneat Technical Guide main Help

Class GetRestaurantMenusQueryHandler

Namespace: Restaurant.Application.Requests.Restaurant
Assembly: Restaurant.Application.dll

public sealed class GetRestaurantMenusQueryHandler : IRequestHandler<GetRestaurantMenusQuery, Result<IEnumerable<Menu>>>

Inheritance

object ← GetRestaurantMenusQueryHandler

Implements

IRequestHandler<GetRestaurantMenusQuery, Result<IEnumerable<Menu\>\>\>

Inherited Members

object.Equals\(object?\), object.Equals\(object?, object?\), object.GetHashCode\(\), object.GetType\(\), object.ReferenceEquals\(object?, object?\), object.ToString\(\)

Constructors

GetRestaurantMenusQueryHandler\(IRestaurantRepository\)

public GetRestaurantMenusQueryHandler(IRestaurantRepository restaurantRepository)

Parameters

restaurantRepository IRestaurantRepository

Methods

Handle\(GetRestaurantMenusQuery, CancellationToken\)

Handles a request

public Task<Result<IEnumerable<Menu>>> Handle(GetRestaurantMenusQuery request, CancellationToken cancellationToken)

Parameters

request GetRestaurantMenusQuery

The request

cancellationToken CancellationToken

Cancellation token

Returns

Task <Result< IEnumerable <Menu\>\>\>

Response from the request

Last modified: 21 May 2024