Class GetUsers.Handler
- Namespace
- Raytha.Application.Users.Queries
- Assembly
- Raytha.Application.dll
public class GetUsers.Handler : IRequestHandler<GetUsers.Query, IQueryResponseDto<ListResultDto<UserDto>>>
- Inheritance
-
GetUsers.Handler
- Implements
- Inherited Members
Constructors
Handler(IRaythaDbContext)
public Handler(IRaythaDbContext db)
Parameters
Methods
Handle(Query, CancellationToken)
Handles a request
public Task<IQueryResponseDto<ListResultDto<UserDto>>> Handle(GetUsers.Query request, CancellationToken cancellationToken)
Parameters
request
GetUsers.QueryThe request
cancellationToken
CancellationTokenCancellation token
Returns
- Task<IQueryResponseDto<ListResultDto<UserDto>>>
Response from the request