Table of Contents

Class GetContentItems.Handler

Namespace
Raytha.Application.ContentItems.Queries
Assembly
Raytha.Application.dll
public class GetContentItems.Handler : IRequestHandler<GetContentItems.Query, IQueryResponseDto<ListResultDto<ContentItemDto>>>
Inheritance
GetContentItems.Handler
Implements
Inherited Members

Constructors

Handler(IRaythaDbJsonQueryEngine, IRaythaDbContext, IContentTypeInRoutePath)

public Handler(IRaythaDbJsonQueryEngine db, IRaythaDbContext entityFrameworkDb, IContentTypeInRoutePath contentTypeInRoutePath)

Parameters

db IRaythaDbJsonQueryEngine
entityFrameworkDb IRaythaDbContext
contentTypeInRoutePath IContentTypeInRoutePath

Methods

GetFiltersForView(View, Query)

protected string[] GetFiltersForView(View view, GetContentItems.Query request)

Parameters

view View
request GetContentItems.Query

Returns

string[]

GetPageSizeForView(Query)

protected int GetPageSizeForView(GetContentItems.Query request)

Parameters

request GetContentItems.Query

Returns

int

GetPageSizeForView(View, Query)

protected int GetPageSizeForView(View view, GetContentItems.Query request)

Parameters

view View
request GetContentItems.Query

Returns

int

GetSearchForView(View)

protected string[] GetSearchForView(View view)

Parameters

view View

Returns

string[]

GetSortForView(View, Query)

protected string GetSortForView(View view, GetContentItems.Query request)

Parameters

view View
request GetContentItems.Query

Returns

string

Handle(Query, CancellationToken)

Handles a request

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

Parameters

request GetContentItems.Query

The request

cancellationToken CancellationToken

Cancellation token

Returns

Task<IQueryResponseDto<ListResultDto<ContentItemDto>>>

Response from the request