Class GetContentItemById.Handler
- Namespace
- Raytha.Application.ContentItems.Queries
- Assembly
- Raytha.Application.dll
public class GetContentItemById.Handler : IRequestHandler<GetContentItemById.Query, IQueryResponseDto<ContentItemDto>>
- Inheritance
-
GetContentItemById.Handler
- Implements
- Inherited Members
Constructors
Handler(IRaythaDbJsonQueryEngine, IContentTypeInRoutePath)
public Handler(IRaythaDbJsonQueryEngine db, IContentTypeInRoutePath contentTypeInRoutePath)
Parameters
db
IRaythaDbJsonQueryEnginecontentTypeInRoutePath
IContentTypeInRoutePath
Methods
Handle(Query, CancellationToken)
Handles a request
public Task<IQueryResponseDto<ContentItemDto>> Handle(GetContentItemById.Query request, CancellationToken cancellationToken)
Parameters
request
GetContentItemById.QueryThe request
cancellationToken
CancellationTokenCancellation token
Returns
- Task<IQueryResponseDto<ContentItemDto>>
Response from the request