Class GetNavigationMenuById.Handler
- Namespace
- Raytha.Application.NavigationMenus.Queries
- Assembly
- Raytha.Application.dll
public class GetNavigationMenuById.Handler : IRequestHandler<GetNavigationMenuById.Query, IQueryResponseDto<NavigationMenuDto>>
- Inheritance
-
GetNavigationMenuById.Handler
- Implements
- Inherited Members
Constructors
Handler(IRaythaDbContext)
public Handler(IRaythaDbContext db)
Parameters
Methods
Handle(Query, CancellationToken)
Handles a request
public Task<IQueryResponseDto<NavigationMenuDto>> Handle(GetNavigationMenuById.Query request, CancellationToken cancellationToken)
Parameters
request
GetNavigationMenuById.QueryThe request
cancellationToken
CancellationTokenCancellation token
Returns
- Task<IQueryResponseDto<NavigationMenuDto>>
Response from the request