Table of Contents

Class GetWebTemplateById.Handler

Namespace
Raytha.Application.Themes.WebTemplates.Queries
Assembly
Raytha.Application.dll
public class GetWebTemplateById.Handler : IRequestHandler<GetWebTemplateById.Query, IQueryResponseDto<WebTemplateDto>>
Inheritance
GetWebTemplateById.Handler
Implements
Inherited Members

Constructors

Handler(IRaythaDbContext)

public Handler(IRaythaDbContext db)

Parameters

db IRaythaDbContext

Methods

Handle(Query, CancellationToken)

Handles a request

public Task<IQueryResponseDto<WebTemplateDto>> Handle(GetWebTemplateById.Query request, CancellationToken cancellationToken)

Parameters

request GetWebTemplateById.Query

The request

cancellationToken CancellationToken

Cancellation token

Returns

Task<IQueryResponseDto<WebTemplateDto>>

Response from the request