Class DeleteContentItem.Handler
- Namespace
- Raytha.Application.ContentItems.Commands
- Assembly
- Raytha.Application.dll
public class DeleteContentItem.Handler : IRequestHandler<DeleteContentItem.Command, CommandResponseDto<ShortGuid>>- Inheritance
- 
      
      DeleteContentItem.Handler
- Implements
- Inherited Members
Constructors
Handler(IRaythaDbContext, IRaythaDbJsonQueryEngine, IContentTypeInRoutePath)
public Handler(IRaythaDbContext entityFrameworkDb, IRaythaDbJsonQueryEngine db, IContentTypeInRoutePath contentTypeInRoutePath)Parameters
- entityFrameworkDbIRaythaDbContext
- dbIRaythaDbJsonQueryEngine
- contentTypeInRoutePathIContentTypeInRoutePath
Methods
Handle(Command, CancellationToken)
Handles a request
public Task<CommandResponseDto<ShortGuid>> Handle(DeleteContentItem.Command request, CancellationToken cancellationToken)Parameters
- requestDeleteContentItem.Command
- The request 
- cancellationTokenCancellationToken
- Cancellation token 
Returns
- Task<CommandResponseDto<ShortGuid>>
- Response from the request