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