Class ItemPublishContentBatchMigrator<TContent, TPrepare, TPublish, TResult>
IContentBatchMigrator<TContent> implementation that publishes items one-by-one.
Inheritance
Implements
Inherited Members
Namespace: Tableau.Migration.Engine.Migrators.Batch
Assembly: Tableau.Migration.dll
Syntax
public class ItemPublishContentBatchMigrator<TContent, TPrepare, TPublish, TResult> : ParallelContentBatchMigratorBatchBase<TContent, TPrepare, TPublish>, IContentBatchMigrator<TContent> where TContent : class, IContentReference where TPrepare : class where TPublish : class where TResult : class, IContentReference
Type Parameters
| Name | Description |
|---|---|
| TContent | The content type.The pulled type to prepare.The publish type.The content type.The pulled type to prepare.The publish type.The content type.The pulled type to prepare.The publish type. |
| TPrepare | The content type.The pulled type to prepare.The publish type.The content type.The pulled type to prepare.The publish type.The content type.The pulled type to prepare.The publish type. |
| TPublish | The content type.The pulled type to prepare.The publish type.The content type.The pulled type to prepare.The publish type.The content type.The pulled type to prepare.The publish type. |
| TResult | The post-publish result type. |
Constructors
ItemPublishContentBatchMigrator(IMigration, IMigrationPipeline, IConfigReader, IMigrationHookRunner)
Creates a new ItemPublishContentBatchMigrator<TContent, TPrepare, 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. |