Class RestoreContentItem.Handler
- Namespace
- Raytha.Application.ContentItems.Commands
- Assembly
- Raytha.Application.dll
public class RestoreContentItem.Handler : IRequestHandler<RestoreContentItem.Command, CommandResponseDto<ShortGuid>>
- Inheritance
-
RestoreContentItem.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(RestoreContentItem.Command request, CancellationToken cancellationToken)
Parameters
request
RestoreContentItem.CommandThe request
cancellationToken
CancellationTokenCancellation token
Returns
- Task<CommandResponseDto<ShortGuid>>
Response from the request