Table of Contents

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

db IRaythaDbContext

Methods

Handle(Query, CancellationToken)

Handles a request

public Task<IQueryResponseDto<NavigationMenuDto>> Handle(GetNavigationMenuById.Query request, CancellationToken cancellationToken)

Parameters

request GetNavigationMenuById.Query

The request

cancellationToken CancellationToken

Cancellation token

Returns

Task<IQueryResponseDto<NavigationMenuDto>>

Response from the request