Table of Contents

Class GetWebTemplates.Handler

Namespace
Raytha.Application.Themes.WebTemplates.Queries
Assembly
Raytha.Application.dll
public class GetWebTemplates.Handler : IRequestHandler<GetWebTemplates.Query, IQueryResponseDto<ListResultDto<WebTemplateDto>>>
Inheritance
GetWebTemplates.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<WebTemplateDto>>> Handle(GetWebTemplates.Query request, CancellationToken cancellationToken)

Parameters

request GetWebTemplates.Query

The request

cancellationToken CancellationToken

Cancellation token

Returns

Task<IQueryResponseDto<ListResultDto<WebTemplateDto>>>

Response from the request