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