Table of Contents

Class GetRoles.Handler

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

Constructors

Handler(IRaythaDbContext)

public Handler(IRaythaDbContext db)

Parameters

db IRaythaDbContext

Methods

Handle(Query, CancellationToken)

Handles a request

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

Parameters

request GetRoles.Query

The request

cancellationToken CancellationToken

Cancellation token

Returns

Task<IQueryResponseDto<ListResultDto<RoleDto>>>

Response from the request