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