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