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
Methods
Handle(Query, CancellationToken)
Handles a request
public Task<IQueryResponseDto<ListResultDto<WebTemplateDto>>> Handle(GetWebTemplates.Query request, CancellationToken cancellationToken)
Parameters
request
GetWebTemplates.QueryThe request
cancellationToken
CancellationTokenCancellation token
Returns
- Task<IQueryResponseDto<ListResultDto<WebTemplateDto>>>
Response from the request