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