Interface IMigrationHook<TContext>
Interface for a callback that is called by the migration engine.
Namespace: Tableau.Migration.Engine.Hooks
Assembly: Tableau.Migration.dll
Syntax
public interface IMigrationHook<TContext>
Type Parameters
Name | Description |
---|---|
TContext | The context type. |
Methods
ExecuteAsync(TContext, CancellationToken)
Executes a hook callback.
Declaration
Task<TContext?> ExecuteAsync(TContext ctx, CancellationToken cancel)
Parameters
Type | Name | Description |
---|---|---|
TContext | ctx | The input context from the migration engine or previous hook. |
CancellationToken | cancel | The cancellation token to obey. |
Returns
Type | Description |
---|---|
Task<TContext> | A task to await containing the context,
potentially modified to pass on to the next hook or migration engine,
or null to continue passing the same context as |