Class GetWebTemplatesAsListItems.Handler
- Namespace
- Raytha.Application.Themes.WebTemplates.Queries
- Assembly
- Raytha.Application.dll
public class GetWebTemplatesAsListItems.Handler : IRequestHandler<GetWebTemplatesAsListItems.Query, IQueryResponseDto<ListResultDto<WebTemplateListItemDto>>>
- Inheritance
-
GetWebTemplatesAsListItems.Handler
- Implements
-
IRequestHandler<GetWebTemplatesAsListItems.Query, IQueryResponseDto<ListResultDto<WebTemplateListItemDto>>>
- Inherited Members
Constructors
Handler(IRaythaDbContext)
public Handler(IRaythaDbContext db)
Parameters
Methods
Handle(Query, CancellationToken)
Handles a request
public Task<IQueryResponseDto<ListResultDto<WebTemplateListItemDto>>> Handle(GetWebTemplatesAsListItems.Query request, CancellationToken cancellationToken)
Parameters
request
GetWebTemplatesAsListItems.QueryThe request
cancellationToken
CancellationTokenCancellation token
Returns
- Task<IQueryResponseDto<ListResultDto<WebTemplateListItemDto>>>
Response from the request