Owneat Technical Guide main Help

Class GetRestaurantByIdQueryHandler

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

public sealed class GetRestaurantByIdQueryHandler : IRequestHandler<GetRestaurantByIdQuery, Result<RestaurantResponse>>

Inheritance

object ← GetRestaurantByIdQueryHandler

Implements

IRequestHandler<GetRestaurantByIdQuery, Result<RestaurantResponse\>\>

Inherited Members

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

Constructors

GetRestaurantByIdQueryHandler\(IRestaurantRepository\)

public GetRestaurantByIdQueryHandler(IRestaurantRepository restaurantRepository)

Parameters

restaurantRepository IRestaurantRepository

Methods

Handle\(GetRestaurantByIdQuery, CancellationToken\)

Handles a request

public Task<Result<RestaurantResponse>> Handle(GetRestaurantByIdQuery request, CancellationToken cancellationToken)

Parameters

request GetRestaurantByIdQuery

The request

cancellationToken CancellationToken

Cancellation token

Returns

Task <Result< RestaurantResponse \>\>

Response from the request

Last modified: 21 May 2024