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