Table of Contents

Class CreateContentItem.Handler

Namespace
Raytha.Application.ContentItems.Commands
Assembly
Raytha.Application.dll
public class CreateContentItem.Handler : IRequestHandler<CreateContentItem.Command, CommandResponseDto<ShortGuid>>
Inheritance
CreateContentItem.Handler
Implements
IRequestHandler<CreateContentItem.Command, CommandResponseDto<ShortGuid>>
Inherited Members

Constructors

Handler(IRaythaDbContext)

public Handler(IRaythaDbContext db)

Parameters

db IRaythaDbContext

Methods

GetRoutePath(dynamic, Guid, Guid)

public string GetRoutePath(dynamic content, Guid entityId, Guid contentTypeId)

Parameters

content dynamic
entityId Guid
contentTypeId Guid

Returns

string

Handle(Command, CancellationToken)

Handles a request

public Task<CommandResponseDto<ShortGuid>> Handle(CreateContentItem.Command request, CancellationToken cancellationToken)

Parameters

request CreateContentItem.Command

The request

cancellationToken CancellationToken

Cancellation token

Returns

Task<CommandResponseDto<ShortGuid>>

Response from the request