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