Table of Contents

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 IBackgroundTaskQueue
db IRaythaDbContext
contentTypeInRoutePath IContentTypeInRoutePath

Methods

Handle(Command, CancellationToken)

Handles a request

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

Parameters

request BeginImportContentItemsFromCsv.Command

The request

cancellationToken CancellationToken

Cancellation token

Returns

Task<CommandResponseDto<ShortGuid>>

Response from the request