Table of Contents

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

db IRaythaDbContext

Methods

Handle(Query, CancellationToken)

Handles a request

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

Parameters

request GetEmailTemplateById.Query

The request

cancellationToken CancellationToken

Cancellation token

Returns

Task<IQueryResponseDto<EmailTemplateDto>>

Response from the request