Table of Contents

Class GetContentTypesAsListItems.Handler

Namespace
Raytha.Application.ContentTypes.Queries
Assembly
Raytha.Application.dll
public class GetContentTypesAsListItems.Handler : IRequestHandler<GetContentTypesAsListItems.Query, IQueryResponseDto<ListResultDto<ContentTypeListItemDto>>>
Inheritance
GetContentTypesAsListItems.Handler
Implements
Inherited Members

Constructors

Handler(IRaythaDbContext)

public Handler(IRaythaDbContext db)

Parameters

db IRaythaDbContext

Methods

Handle(Query, CancellationToken)

Handles a request

public Task<IQueryResponseDto<ListResultDto<ContentTypeListItemDto>>> Handle(GetContentTypesAsListItems.Query request, CancellationToken cancellationToken)

Parameters

request GetContentTypesAsListItems.Query

The request

cancellationToken CancellationToken

Cancellation token

Returns

Task<IQueryResponseDto<ListResultDto<ContentTypeListItemDto>>>

Response from the request