Class BeginExportContentItemsToCsv.Handler
- Namespace
- Raytha.Application.ContentItems.Commands
- Assembly
- Raytha.Application.dll
public class BeginExportContentItemsToCsv.Handler : IRequestHandler<BeginExportContentItemsToCsv.Command, CommandResponseDto<ShortGuid>>
- Inheritance
-
BeginExportContentItemsToCsv.Handler
- Implements
- Inherited Members
Constructors
Handler(IBackgroundTaskQueue, IRaythaDbContext, IContentTypeInRoutePath)
public Handler(IBackgroundTaskQueue taskQueue, IRaythaDbContext entityFrameworkDb, IContentTypeInRoutePath contentTypeInRoutePath)
Parameters
taskQueue
IBackgroundTaskQueueentityFrameworkDb
IRaythaDbContextcontentTypeInRoutePath
IContentTypeInRoutePath
Methods
Handle(Command, CancellationToken)
Handles a request
public Task<CommandResponseDto<ShortGuid>> Handle(BeginExportContentItemsToCsv.Command request, CancellationToken cancellationToken)
Parameters
request
BeginExportContentItemsToCsv.CommandThe request
cancellationToken
CancellationTokenCancellation token
Returns
- Task<CommandResponseDto<ShortGuid>>
Response from the request