Class BulkPublishContentBatchMigrator<TContent, TPublish>
IContentBatchMigrator<TContent> implementation that publishes the entire batch after all items have been prepared.
Inheritance
ContentBatchMigratorBase<TContent, TPublish>
ParallelContentBatchMigratorBatchBase<TContent, TPublish>
BulkPublishContentBatchMigrator<TContent, TPublish>
Implements
IContentBatchMigrator<TContent>
Inherited Members
Namespace: Tableau.Migration.Engine.Migrators.Batch
Assembly: Tableau.Migration.dll
Syntax
public class BulkPublishContentBatchMigrator<TContent, TPublish> : ParallelContentBatchMigratorBatchBase<TContent, TPublish>, IContentBatchMigrator<TContent> where TContent : class, IContentReference where TPublish : class
Type Parameters
Name | Description |
---|---|
TContent | The content type. |
TPublish | The publish type. |
Constructors
BulkPublishContentBatchMigrator(IMigration, IMigrationPipeline, IConfigReader, IMigrationHookRunner)
Creates a new BulkPublishContentBatchMigrator<TContent, TPublish> object.
Declaration
public BulkPublishContentBatchMigrator(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
MigrateBatchAsync(ContentMigrationBatch<TContent, TPublish>)
Migrates the batch of content items.
Declaration
protected override Task MigrateBatchAsync(ContentMigrationBatch<TContent, TPublish> batch)
Parameters
Type | Name | Description |
---|---|---|
ContentMigrationBatch<TContent, TPublish> | batch | The batch to migrate. |
Returns
Type | Description |
---|---|
Task |
Overrides
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. |