Table of Contents

Class GetContentTypeByDeveloperName.Handler

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

Constructors

Handler(IRaythaDbContext)

public Handler(IRaythaDbContext db)

Parameters

db IRaythaDbContext

Methods

Handle(Query, CancellationToken)

Handles a request

public Task<IQueryResponseDto<ContentTypeDto>> Handle(GetContentTypeByDeveloperName.Query request, CancellationToken cancellationToken)

Parameters

request GetContentTypeByDeveloperName.Query

The request

cancellationToken CancellationToken

Cancellation token

Returns

Task<IQueryResponseDto<ContentTypeDto>>

Response from the request