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
- taskQueueIBackgroundTaskQueue
- dbIRaythaDbContext
- contentTypeInRoutePathIContentTypeInRoutePath
Methods
Handle(Command, CancellationToken)
Handles a request
public Task<CommandResponseDto<ShortGuid>> Handle(BeginImportContentItemsFromCsv.Command request, CancellationToken cancellationToken)Parameters
- requestBeginImportContentItemsFromCsv.Command
- The request 
- cancellationTokenCancellationToken
- Cancellation token 
Returns
- Task<CommandResponseDto<ShortGuid>>
- Response from the request