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