Table of Contents

Class UnpublishContentItem.Handler

Namespace
Raytha.Application.ContentItems.Commands
Assembly
Raytha.Application.dll
public class UnpublishContentItem.Handler : IRequestHandler<UnpublishContentItem.Command, CommandResponseDto<ShortGuid>>
Inheritance
UnpublishContentItem.Handler
Implements
IRequestHandler<UnpublishContentItem.Command, CommandResponseDto<ShortGuid>>
Inherited Members

Constructors

Handler(IRaythaDbContext, IContentTypeInRoutePath)

public Handler(IRaythaDbContext db, IContentTypeInRoutePath contentTypeInRoutePath)

Parameters

db IRaythaDbContext
contentTypeInRoutePath IContentTypeInRoutePath

Methods

Handle(Command, CancellationToken)

Handles a request

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

Parameters

request UnpublishContentItem.Command

The request

cancellationToken CancellationToken

Cancellation token

Returns

Task<CommandResponseDto<ShortGuid>>

Response from the request