Table of Contents

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 IRaythaDbJsonQueryEngine
contentTypeInRoutePath IContentTypeInRoutePath

Methods

Handle(Query, CancellationToken)

Handles a request

public Task<IQueryResponseDto<ContentItemDto>> Handle(GetContentItemById.Query request, CancellationToken cancellationToken)

Parameters

request GetContentItemById.Query

The request

cancellationToken CancellationToken

Cancellation token

Returns

Task<IQueryResponseDto<ContentItemDto>>

Response from the request