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