Class RevertContentItem.Handler
- Namespace
- Raytha.Application.ContentItems.Commands
- Assembly
- Raytha.Application.dll
public class RevertContentItem.Handler : IRequestHandler<RevertContentItem.Command, CommandResponseDto<ShortGuid>>
- Inheritance
-
RevertContentItem.Handler
- Implements
- Inherited Members
Constructors
Handler(IRaythaDbContext, IContentTypeInRoutePath)
public Handler(IRaythaDbContext db, IContentTypeInRoutePath contentTypeInRoutePath)
Parameters
dbIRaythaDbContextcontentTypeInRoutePathIContentTypeInRoutePath
Methods
Handle(Command, CancellationToken)
Handles a request
public Task<CommandResponseDto<ShortGuid>> Handle(RevertContentItem.Command request, CancellationToken cancellationToken)
Parameters
requestRevertContentItem.CommandThe request
cancellationTokenCancellationTokenCancellation token
Returns
- Task<CommandResponseDto<ShortGuid>>
Response from the request