Table of Contents

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

db IRaythaDbContext

Methods

Handle(Query, CancellationToken)

Handles a request

public Task<IQueryResponseDto<ListResultDto<EmailTemplateDto>>> Handle(GetEmailTemplates.Query request, CancellationToken cancellationToken)

Parameters

request GetEmailTemplates.Query

The request

cancellationToken CancellationToken

Cancellation token

Returns

Task<IQueryResponseDto<ListResultDto<EmailTemplateDto>>>

Response from the request