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