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