Class ItemPublishContentBatchMigrator<TContent, TPublish, TResult>
IContentBatchMigrator<TContent> implementation that publishes items one-by-one.
Inheritance
ContentBatchMigratorBase<TContent, TPublish>
ParallelContentBatchMigratorBatchBase<TContent, TPublish>
ItemPublishContentBatchMigrator<TContent, TPublish, TResult>
Implements
IContentBatchMigrator<TContent>
Inherited Members
Namespace: Tableau.Migration.Engine.Migrators.Batch
Assembly: Tableau.Migration.dll
Syntax
public class ItemPublishContentBatchMigrator<TContent, TPublish, TResult> : ParallelContentBatchMigratorBatchBase<TContent, TPublish>, IContentBatchMigrator<TContent> where TContent : class, IContentReference where TPublish : class where TResult : class, IContentReference
Type Parameters
Name | Description |
---|---|
TContent | The content type. |
TPublish | The publish type. |
TResult | The post-publish result type. |
Constructors
ItemPublishContentBatchMigrator(IMigration, IMigrationPipeline, IConfigReader, IMigrationHookRunner)
Creates a new ItemPublishContentBatchMigrator<TContent, TPublish, TResult> object.
Declaration
public ItemPublishContentBatchMigrator(IMigration migration, IMigrationPipeline pipeline, IConfigReader configReader, IMigrationHookRunner hookRunner)
Parameters
Type | Name | Description |
---|---|---|
IMigration | migration | The current migration. |
IMigrationPipeline | pipeline | The pipeline to use to get the item preparer. |
IConfigReader | configReader | The configuration reader. |
IMigrationHookRunner | hookRunner | The hook runner. |
Methods
MigratePreparedItemAsync(ContentMigrationItem<TContent>, TPublish, CancellationToken)
Performs post-preparation item migration (e.g. publishing, adding to a bulk import, etc.).
Declaration
protected override Task<IResult> MigratePreparedItemAsync(ContentMigrationItem<TContent> migrationItem, TPublish preparedItem, CancellationToken cancel)
Parameters
Type | Name | Description |
---|---|---|
ContentMigrationItem<TContent> | migrationItem | The item being migrated. |
TPublish | preparedItem | The prepared publish item. |
CancellationToken | cancel | The cancellation token to obey. |
Returns
Type | Description |
---|---|
Task<IResult> | The result of the migration. |