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