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