Table of Contents

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
Inherited Members

Constructors

Handler(IRaythaDbContext, IContentTypeInRoutePath)

public Handler(IRaythaDbContext db, IContentTypeInRoutePath contentTypeInRoutePath)

Parameters

db IRaythaDbContext
contentTypeInRoutePath IContentTypeInRoutePath

Methods

Handle(Query, CancellationToken)

Handles a request

public Task<IQueryResponseDto<ListResultDto<ContentItemRevisionDto>>> Handle(GetContentItemRevisionsByContentItemId.Query request, CancellationToken cancellationToken)

Parameters

request GetContentItemRevisionsByContentItemId.Query

The request

cancellationToken CancellationToken

Cancellation token

Returns

Task<IQueryResponseDto<ListResultDto<ContentItemRevisionDto>>>

Response from the request