Table of Contents

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
IRequestHandler<DeleteContentItem.Command, CommandResponseDto<ShortGuid>>
Inherited Members

Constructors

Handler(IRaythaDbContext, IRaythaDbJsonQueryEngine, IContentTypeInRoutePath)

public Handler(IRaythaDbContext entityFrameworkDb, IRaythaDbJsonQueryEngine db, IContentTypeInRoutePath contentTypeInRoutePath)

Parameters

entityFrameworkDb IRaythaDbContext
db IRaythaDbJsonQueryEngine
contentTypeInRoutePath IContentTypeInRoutePath

Methods

Handle(Command, CancellationToken)

Handles a request

public Task<CommandResponseDto<ShortGuid>> Handle(DeleteContentItem.Command request, CancellationToken cancellationToken)

Parameters

request DeleteContentItem.Command

The request

cancellationToken CancellationToken

Cancellation token

Returns

Task<CommandResponseDto<ShortGuid>>

Response from the request