Table of Contents

Class GetRoleById.Handler

Namespace
Raytha.Application.Roles.Queries
Assembly
Raytha.Application.dll
public class GetRoleById.Handler : IRequestHandler<GetRoleById.Query, IQueryResponseDto<RoleDto>>
Inheritance
GetRoleById.Handler
Implements
Inherited Members

Constructors

Handler(IRaythaDbContext)

public Handler(IRaythaDbContext db)

Parameters

db IRaythaDbContext

Methods

Handle(Query, CancellationToken)

Handles a request

public Task<IQueryResponseDto<RoleDto>> Handle(GetRoleById.Query request, CancellationToken cancellationToken)

Parameters

request GetRoleById.Query

The request

cancellationToken CancellationToken

Cancellation token

Returns

Task<IQueryResponseDto<RoleDto>>

Response from the request