Class PreflightAction
IMigrationAction implementation that validates that the migration is ready to begin.
Implements
Namespace: Tableau.Migration.Engine.Actions
Assembly: Tableau.Migration.dll
Syntax
public class PreflightAction : IMigrationAction
Constructors
PreflightAction(IOptions<PreflightOptions>, IMigration, ILogger<PreflightAction>, ISharedResourcesLocalizer)
Creates a new PreflightAction object.
Declaration
public PreflightAction(IOptions<PreflightOptions> options, IMigration migration, ILogger<PreflightAction> logger, ISharedResourcesLocalizer localizer)
Parameters
Type | Name | Description |
---|---|---|
IOptions<PreflightOptions> | options | The preflight options. |
IMigration | migration | The current migration. |
ILogger<PreflightAction> | logger | A logger. |
ISharedResourcesLocalizer | localizer | A localizer. |
Methods
ExecuteAsync(CancellationToken)
Executes the migration action.
Declaration
public Task<IMigrationActionResult> ExecuteAsync(CancellationToken cancel)
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | cancel | The cancellation token to obey. |
Returns
Type | Description |
---|---|
Task<IMigrationActionResult> | An awaitable task for the overall action result. |