Class ContentMigrator<TContent>
Default IContentMigrator<TContent> implementation.
Inheritance
object
ContentMigrator<TContent>
Implements
IContentMigrator<TContent>
Namespace: Tableau.Migration.Engine.Migrators
Assembly: Tableau.Migration.dll
Syntax
public class ContentMigrator<TContent> : IContentMigrator<TContent> where TContent : class, IContentReference
Type Parameters
| Name | Description |
|---|---|
| TContent | The content type. |
Constructors
ContentMigrator(IMigrationPipeline, IMigration, IConfigReader, IMigrationHookRunner, IContentMappingRunner, IContentFilterRunner)
Creates a new ContentMigrator<TContent> object.
Declaration
public ContentMigrator(IMigrationPipeline pipeline, IMigration migration, IConfigReader configReader, IMigrationHookRunner hookRunner, IContentMappingRunner mappingRunner, IContentFilterRunner filterRunner)
Parameters
| Type | Name | Description |
|---|---|---|
| IMigrationPipeline | pipeline | The pipeline to use to get the batch migrator. |
| IMigration | migration | The migration being executed. |
| IConfigReader | configReader | The configuration reader. |
| IMigrationHookRunner | hookRunner | The hook runner. |
| IContentMappingRunner | mappingRunner | The mapping runner. |
| IContentFilterRunner | filterRunner | The filter runner. |
Properties
BatchSize
Gets the configured batch size.
Declaration
protected int BatchSize { get; }
Property Value
| Type | Description |
|---|---|
| int |
Methods
BuildMigrationItem(TContent, IMigrationManifestEntryEditor)
Creates a migration item context object for a given source content item and manifest entry.
Declaration
protected static ContentMigrationItem<TContent> BuildMigrationItem(TContent sourceItem, IMigrationManifestEntryEditor manifestEntry)
Parameters
| Type | Name | Description |
|---|---|---|
| TContent | sourceItem | The source content item. |
| IMigrationManifestEntryEditor | manifestEntry | The manifest entry. |
Returns
| Type | Description |
|---|---|
| ContentMigrationItem<TContent> | The created migration item. |
MigrateAsync(CancellationToken)
Migrates content for the given content type.
Declaration
public Task<IResult> MigrateAsync(CancellationToken cancel)
Parameters
| Type | Name | Description |
|---|---|---|
| CancellationToken | cancel | The cancellation token to obey. |
Returns
| Type | Description |
|---|---|
| Task<IResult> | A task to await. |