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