Class MigrationPipelineFactory
Default IMigrationPipelineFactory implementation.
Implements
Namespace: Tableau.Migration.Engine.Pipelines
Assembly: Tableau.Migration.dll
Syntax
public class MigrationPipelineFactory : IMigrationPipelineFactory
Constructors
MigrationPipelineFactory(IServiceProvider)
Creates a new MigrationPipelineFactory object.
Declaration
public MigrationPipelineFactory(IServiceProvider services)
Parameters
Type | Name | Description |
---|---|---|
IServiceProvider | services | A service provider to create pipelines with. |
Properties
Services
Gets the migration-scoped service provider.
Declaration
protected IServiceProvider Services { get; }
Property Value
Type | Description |
---|---|
IServiceProvider |
Methods
Create(IMigrationPlan)
Creates a pipeline for the given plan.
Declaration
public virtual IMigrationPipeline Create(IMigrationPlan plan)
Parameters
Type | Name | Description |
---|---|---|
IMigrationPlan | plan | The plan to create the pipeline for. |
Returns
Type | Description |
---|---|
IMigrationPipeline | The created pipeline. |
Exceptions
Type | Condition |
---|---|
ArgumentException | If the plan's pipeline profile is not supported by the factory. |