Table of Contents

Class GetEmailTemplateByName.Handler

Namespace
Raytha.Application.EmailTemplates.Queries
Assembly
Raytha.Application.dll
public class GetEmailTemplateByName.Handler : IRequestHandler<GetEmailTemplateByName.Query, IQueryResponseDto<EmailTemplateDto>>
Inheritance
GetEmailTemplateByName.Handler
Implements
Inherited Members

Constructors

Handler(IRaythaDbContext)

public Handler(IRaythaDbContext db)

Parameters

db IRaythaDbContext

Methods

Handle(Query, CancellationToken)

Handles a request

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

Parameters

request GetEmailTemplateByName.Query

The request

cancellationToken CancellationToken

Cancellation token

Returns

Task<IQueryResponseDto<EmailTemplateDto>>

Response from the request