Class CreateNavigationMenuItem.Handler
- Namespace
- Raytha.Application.NavigationMenuItems.Commands
- Assembly
- Raytha.Application.dll
public class CreateNavigationMenuItem.Handler : IRequestHandler<CreateNavigationMenuItem.Command, CommandResponseDto<ShortGuid>>
- Inheritance
-
CreateNavigationMenuItem.Handler
- Implements
- Inherited Members
Constructors
Handler(IRaythaDbContext, IMediator)
public Handler(IRaythaDbContext db, IMediator mediator)
Parameters
db
IRaythaDbContextmediator
IMediator
Methods
Handle(Command, CancellationToken)
Handles a request
public Task<CommandResponseDto<ShortGuid>> Handle(CreateNavigationMenuItem.Command request, CancellationToken cancellationToken)
Parameters
request
CreateNavigationMenuItem.CommandThe request
cancellationToken
CancellationTokenCancellation token
Returns
- Task<CommandResponseDto<ShortGuid>>
Response from the request