Class MigrationInput
Default IMigrationInput and IMigrationInputInitializer implementation.
Implements
Namespace: Tableau.Migration.Engine
Assembly: Tableau.Migration.dll
Syntax
public sealed class MigrationInput : IMigrationInput
Constructors
MigrationInput(ILogger<MigrationInput>, ISharedResourcesLocalizer)
Creates a new MigrationInput object.
Declaration
public MigrationInput(ILogger<MigrationInput> log, ISharedResourcesLocalizer localizer)
Parameters
Type | Name | Description |
---|---|---|
ILogger<MigrationInput> | log | A logger to log to. |
ISharedResourcesLocalizer | localizer | A string localizer. |
Properties
MigrationId
Gets the unique identifier of the migration. This is generated as part of the input so that migration bootstrapping can avoid DI cycles.
Declaration
public Guid MigrationId { get; }
Property Value
Type | Description |
---|---|
Guid |
Plan
Gets the migration plan to execute.
Declaration
public IMigrationPlan Plan { get; }
Property Value
Type | Description |
---|---|
IMigrationPlan |
PreviousManifest
Gets a manifest from a previous migration of the same plan to use to determine what progress has already been made.
Declaration
public IMigrationManifest? PreviousManifest { get; }
Property Value
Type | Description |
---|---|
IMigrationManifest |
Methods
Initialize(IMigrationPlan, IMigrationManifest?)
Initializes the IMigrationInput object.
Declaration
public void Initialize(IMigrationPlan plan, IMigrationManifest? previousManifest)
Parameters
Type | Name | Description |
---|---|---|
IMigrationPlan | plan | The migration plan to execute. |
IMigrationManifest | previousManifest | A manifest from a previous migration of the same plan to use to determine what progress has already been made. |