Interface IMigrationHookFactory
Interface for an object that can create a migration hook object.
Namespace: Tableau.Migration.Engine.Hooks
Assembly: Tableau.Migration.dll
Syntax
public interface IMigrationHookFactory
Methods
Create<THook>(IServiceProvider)
Creates a hook for the given hook type.
Declaration
THook Create<THook>(IServiceProvider services)
Parameters
| Type | Name | Description |
|---|---|---|
| IServiceProvider | services | The migration-scoped DI services available. |
Returns
| Type | Description |
|---|---|
| THook | The created hook. |
Type Parameters
| Name | Description |
|---|---|
| THook | The hook type. |
Exceptions
| Type | Condition |
|---|---|
| InvalidCastException | If the factory cannot create a hook of the hook type. |