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