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
Methods
Handle(Query, CancellationToken)
Handles a request
public Task<IQueryResponseDto<ListResultDto<RoleDto>>> Handle(GetRoles.Query request, CancellationToken cancellationToken)
Parameters
request
GetRoles.QueryThe request
cancellationToken
CancellationTokenCancellation token
Returns
- Task<IQueryResponseDto<ListResultDto<RoleDto>>>
Response from the request