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