Table of Contents

Class GetContentTypes.Handler

Namespace
Raytha.Application.ContentTypes.Queries
Assembly
Raytha.Application.dll
public class GetContentTypes.Handler : IRequestHandler<GetContentTypes.Query, IQueryResponseDto<ListResultDto<ContentTypeDto>>>
Inheritance
GetContentTypes.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<ContentTypeDto>>> Handle(GetContentTypes.Query request, CancellationToken cancellationToken)

Parameters

request GetContentTypes.Query

The request

cancellationToken CancellationToken

Cancellation token

Returns

Task<IQueryResponseDto<ListResultDto<ContentTypeDto>>>

Response from the request