Class MigrateContentAction<TContent>
Default IMigrateContentAction<TContent> implementation.
Namespace: Tableau.Migration.Engine.Actions
Assembly: Tableau.Migration.dll
Syntax
public class MigrateContentAction<TContent> : IMigrateContentAction<TContent>, IMigrationAction where TContent : class, IContentReference
Type Parameters
Name | Description |
---|---|
TContent | The content type. |
Constructors
MigrateContentAction(IMigrationPipeline, IMigrationCapabilities, ILogger<MigrateContentAction<TContent>>, ISharedResourcesLocalizer)
Creates a new MigrateContentAction<TContent> object.
Declaration
public MigrateContentAction(IMigrationPipeline pipeline, IMigrationCapabilities migrationCapabilities, ILogger<MigrateContentAction<TContent>> logger, ISharedResourcesLocalizer localizer)
Parameters
Type | Name | Description |
---|---|---|
IMigrationPipeline | pipeline | A pipeline to use to get the content migrator. |
IMigrationCapabilities | migrationCapabilities | The migration capabilities. |
ILogger<MigrateContentAction<TContent>> | logger | The logger. |
ISharedResourcesLocalizer | localizer | The localizer. |
Methods
ExecuteAsync(CancellationToken)
Executes the migration action.
Declaration
public Task<IMigrationActionResult> ExecuteAsync(CancellationToken cancel)
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | cancel | The cancellation token to obey. |
Returns
Type | Description |
---|---|
Task<IMigrationActionResult> | An awaitable task for the overall action result. |