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, 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. |