Table of Contents

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 IRaythaDbContext
mediator IMediator

Methods

Handle(Command, CancellationToken)

Handles a request

public Task<CommandResponseDto<ShortGuid>> Handle(CreateNavigationMenuItem.Command request, CancellationToken cancellationToken)

Parameters

request CreateNavigationMenuItem.Command

The request

cancellationToken CancellationToken

Cancellation token

Returns

Task<CommandResponseDto<ShortGuid>>

Response from the request