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
- Inherited Members
Constructors
Handler(IRaythaDbContext)
public Handler(IRaythaDbContext db)
Parameters
Methods
GetRoutePath(string, Guid, Guid)
public string GetRoutePath(string developerName, Guid entityId, Guid contentTypeId)
Parameters
Returns
Handle(Command, CancellationToken)
Handles a request
public Task<CommandResponseDto<ShortGuid>> Handle(CreateView.Command request, CancellationToken cancellationToken)
Parameters
request
CreateView.CommandThe request
cancellationToken
CancellationTokenCancellation token
Returns
- Task<CommandResponseDto<ShortGuid>>
Response from the request