Table of Contents

Class CreateView.Handler

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

Constructors

Handler(IRaythaDbContext)

public Handler(IRaythaDbContext db)

Parameters

db IRaythaDbContext

Methods

GetRoutePath(string, Guid, Guid)

public string GetRoutePath(string developerName, Guid entityId, Guid contentTypeId)

Parameters

developerName string
entityId Guid
contentTypeId Guid

Returns

string

Handle(Command, CancellationToken)

Handles a request

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

Parameters

request CreateView.Command

The request

cancellationToken CancellationToken

Cancellation token

Returns

Task<CommandResponseDto<ShortGuid>>

Response from the request