Class MigrationPipelineBase
Common base class for IMigrationPipeline implementations that can create and execute actions.
Implements
Namespace: Tableau.Migration.Engine.Pipelines
Assembly: Tableau.Migration.dll
Syntax
public abstract class MigrationPipelineBase : IMigrationPipeline
Constructors
MigrationPipelineBase(IServiceProvider)
Creates a new MigrationPipelineBase object.
Declaration
protected MigrationPipelineBase(IServiceProvider services)
Parameters
Type | Name | Description |
---|---|---|
IServiceProvider | services | A DI service provider to create actions with. |
Properties
Services
Gets the service provider.
Declaration
protected IServiceProvider Services { get; }
Property Value
Type | Description |
---|---|
IServiceProvider |
Methods
BuildActions()
Builds the ordered actions in the pipeline to execute.
Declaration
public ImmutableArray<IMigrationAction> BuildActions()
Returns
Type | Description |
---|---|
ImmutableArray<IMigrationAction> |
BuildPipeline()
Builds the pipeline of actions to execute in order.
Declaration
protected abstract IEnumerable<IMigrationAction> BuildPipeline()
Returns
Type | Description |
---|---|
IEnumerable<IMigrationAction> | The actions to execute in order. |
CreateAction<TAction>()
Creates an action of the given type.
Declaration
protected TAction CreateAction<TAction>() where TAction : IMigrationAction
Returns
Type | Description |
---|---|
TAction | The created action. |
Type Parameters
Name | Description |
---|---|
TAction | The action type. |
CreateDestinationCache<TContent>()
Gets the destination cache for the given content type.
Declaration
public virtual IContentReferenceCache CreateDestinationCache<TContent>() where TContent : class, IContentReference
Returns
Type | Description |
---|---|
IContentReferenceCache | The destination cache. |
Type Parameters
Name | Description |
---|---|
TContent | The content type. |
CreateMigrateContentAction<TContent>()
Creates an action to migrate content of a given type.
Declaration
protected IMigrateContentAction<TContent> CreateMigrateContentAction<TContent>() where TContent : class, IContentReference
Returns
Type | Description |
---|---|
IMigrateContentAction<TContent> | The created content migration action. |
Type Parameters
Name | Description |
---|---|
TContent | The content type to migrate. |
CreateSourceCache<TContent>()
Gets the source cache for the given content type.
Declaration
public virtual IContentReferenceCache CreateSourceCache<TContent>() where TContent : class, IContentReference
Returns
Type | Description |
---|---|
IContentReferenceCache | The source cache. |
Type Parameters
Name | Description |
---|---|
TContent | The content type. |
GetBatchMigrator<TContent>()
Gets a batch level migrator for the given content type.
Declaration
public virtual IContentBatchMigrator<TContent> GetBatchMigrator<TContent>() where TContent : class, IContentReference
Returns
Type | Description |
---|---|
IContentBatchMigrator<TContent> | The batch level migrator. |
Type Parameters
Name | Description |
---|---|
TContent | The content type. |
GetDestinationLockedProjectCache()
Gets the destination locked project cache.
Declaration
public virtual ILockedProjectCache GetDestinationLockedProjectCache()
Returns
Type | Description |
---|---|
ILockedProjectCache | The destination locked project cache. |
GetItemPreparer<TContent, TPublish>()
Gets a content item preparer for the given content and publish types.
Declaration
public virtual IContentItemPreparer<TContent, TPublish> GetItemPreparer<TContent, TPublish>() where TContent : class where TPublish : class
Returns
Type | Description |
---|---|
IContentItemPreparer<TContent, TPublish> | The content preparer. |
Type Parameters
Name | Description |
---|---|
TContent | The content type. |
TPublish | The publish type. |
GetMigrator<TContent>()
Gets a content type level migrator for the given content type.
Declaration
public virtual IContentMigrator<TContent> GetMigrator<TContent>() where TContent : class, IContentReference
Returns
Type | Description |
---|---|
IContentMigrator<TContent> | The content type level migrator. |
Type Parameters
Name | Description |
---|---|
TContent | The content type. |