Class MigrationHookFactoryCollection
Interface for an object that contains MigrationHookFactorys registered for each hook type.
Implements
Namespace: Tableau.Migration.Engine.Hooks
Assembly: Tableau.Migration.dll
Syntax
public class MigrationHookFactoryCollection : IMigrationHookFactoryCollection
Constructors
MigrationHookFactoryCollection(ImmutableDictionary<Type, ImmutableArray<IMigrationHookFactory>>)
Creates a new MigrationHookFactoryCollection object.
Declaration
public MigrationHookFactoryCollection(ImmutableDictionary<Type, ImmutableArray<IMigrationHookFactory>> factoriesByType)
Parameters
Type | Name | Description |
---|---|---|
ImmutableDictionary<Type, ImmutableArray<IMigrationHookFactory>> | factoriesByType | The hook factories registered per hook type. |
Fields
Empty
Gets an empty MigrationHookFactoryCollection.
Declaration
public static readonly MigrationHookFactoryCollection Empty
Field Value
Type | Description |
---|---|
MigrationHookFactoryCollection |
Methods
GetHooks(Type)
Gets the MigrationHookFactorys for the given hook type.
Declaration
public ImmutableArray<IMigrationHookFactory> GetHooks(Type hookType)
Parameters
Type | Name | Description |
---|---|---|
Type | hookType | The hook type. |
Returns
Type | Description |
---|---|
ImmutableArray<IMigrationHookFactory> | An immutable array of the registered hook factories for the given type. |
GetHooks<THook>()
Gets the MigrationHookFactorys for the given hook type.
Declaration
public ImmutableArray<IMigrationHookFactory> GetHooks<THook>()
Returns
Type | Description |
---|---|
ImmutableArray<IMigrationHookFactory> | An immutable array of the registered hook factories for the given type. |
Type Parameters
Name | Description |
---|---|
THook | The hook type. |