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
entityFrameworkDb
IRaythaDbContextdb
IRaythaDbJsonQueryEnginecontentTypeInRoutePath
IContentTypeInRoutePath
Methods
Handle(Command, CancellationToken)
Handles a request
public Task<CommandResponseDto<ShortGuid>> Handle(DeleteContentItem.Command request, CancellationToken cancellationToken)
Parameters
request
DeleteContentItem.CommandThe request
cancellationToken
CancellationTokenCancellation token
Returns
- Task<CommandResponseDto<ShortGuid>>
Response from the request