Interface IMigrationHookRunner
Interface for an object that can run hooks.
Namespace: Tableau.Migration.Engine.Hooks
Assembly: Tableau.Migration.dll
Syntax
public interface IMigrationHookRunner
Methods
ExecuteAsync<THook, TContext>(TContext, Action<string, TContext, TContext>?, CancellationToken)
Executes all hooks for the hook type in order.
Declaration
Task<TContext> ExecuteAsync<THook, TContext>(TContext context, Action<string, TContext, TContext>? afterHookAction, CancellationToken cancel) where THook : IMigrationHook<TContext>
Parameters
| Type | Name | Description |
|---|---|---|
| TContext | context | The context to pass to the first hook. |
| Action<string, TContext, TContext> | afterHookAction | Optional delegate to perform action after each hook is executed.
|
| CancellationToken | cancel |
Returns
| Type | Description |
|---|---|
| Task<TContext> | The result context returned by the last hook. |
Type Parameters
| Name | Description |
|---|---|
| THook | The hook type. |
| TContext | The hook context type. |
ExecuteAsync<THook, TContext>(TContext, CancellationToken)
Executes all hooks for the hook type in order.
Declaration
Task<TContext> ExecuteAsync<THook, TContext>(TContext context, CancellationToken cancel) where THook : IMigrationHook<TContext>
Parameters
| Type | Name | Description |
|---|---|---|
| TContext | context | The context to pass to the first hook. |
| CancellationToken | cancel |
Returns
| Type | Description |
|---|---|
| Task<TContext> | The result context returned by the last hook. |
Type Parameters
| Name | Description |
|---|---|
| THook | The hook type. |
| TContext | The hook context type. |