Table of Contents

Class CreateRole.Handler

Namespace
Raytha.Application.Roles.Commands
Assembly
Raytha.Application.dll
public class CreateRole.Handler : IRequestHandler<CreateRole.Command, CommandResponseDto<ShortGuid>>
Inheritance
CreateRole.Handler
Implements
IRequestHandler<CreateRole.Command, CommandResponseDto<ShortGuid>>
Inherited Members

Constructors

Handler(IRaythaDbContext)

public Handler(IRaythaDbContext db)

Parameters

db IRaythaDbContext

Methods

Handle(Command, CancellationToken)

Handles a request

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

Parameters

request CreateRole.Command

The request

cancellationToken CancellationToken

Cancellation token

Returns

Task<CommandResponseDto<ShortGuid>>

Response from the request