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(IServiceProvider, IOptions<PreflightOptions>, IMigration, IMigrationHookRunner, ILogger<PreflightAction>, ISharedResourcesLocalizer)
Creates a new PreflightAction object.
Declaration
public PreflightAction(IServiceProvider services, IOptions<PreflightOptions> options, IMigration migration, IMigrationHookRunner hooks, ILogger<PreflightAction> logger, ISharedResourcesLocalizer localizer)
Parameters
Type | Name | Description |
---|---|---|
IServiceProvider | services | The migration-scoped service provider. |
IOptions<PreflightOptions> | options | The preflight options. |
IMigration | migration | The current migration. |
IMigrationHookRunner | hooks | The hook runner |
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. |