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
IRaythaDbJsonQueryEngineentityFrameworkDb
IRaythaDbContextcontentTypeInRoutePath
IContentTypeInRoutePath
Methods
GetFiltersForView(View, Query)
protected string[] GetFiltersForView(View view, GetContentItems.Query request)
Parameters
view
Viewrequest
GetContentItems.Query
Returns
- string[]
GetPageSizeForView(Query)
protected int GetPageSizeForView(GetContentItems.Query request)
Parameters
request
GetContentItems.Query
Returns
GetPageSizeForView(View, Query)
protected int GetPageSizeForView(View view, GetContentItems.Query request)
Parameters
view
Viewrequest
GetContentItems.Query
Returns
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
Viewrequest
GetContentItems.Query
Returns
Handle(Query, CancellationToken)
Handles a request
public Task<IQueryResponseDto<ListResultDto<ContentItemDto>>> Handle(GetContentItems.Query request, CancellationToken cancellationToken)
Parameters
request
GetContentItems.QueryThe request
cancellationToken
CancellationTokenCancellation token
Returns
- Task<IQueryResponseDto<ListResultDto<ContentItemDto>>>
Response from the request