Class MigrationHookBuilderBase
Base implementation for IMigrationHookBuilder
Namespace: Tableau.Migration.Engine.Hooks
Assembly: Tableau.Migration.dll
Syntax
public abstract class MigrationHookBuilderBase
Constructors
MigrationHookBuilderBase()
Creates a new empty MigrationHookBuilderBase object.
Declaration
protected MigrationHookBuilderBase()
Methods
Add(Type, IEnumerable<Type[]>)
Declaration
protected MigrationHookBuilderBase Add(Type genericHookType, IEnumerable<Type[]> contentTypes)
Parameters
Type | Name | Description |
---|---|---|
Type | genericHookType | |
IEnumerable<Type[]> | contentTypes |
Returns
Type | Description |
---|---|
MigrationHookBuilderBase |
Exceptions
Type | Condition |
---|---|
ArgumentException |
Add(Type, Func<IServiceProvider, object>)
Declaration
protected MigrationHookBuilderBase Add(Type filterType, Func<IServiceProvider, object> initializer)
Parameters
Type | Name | Description |
---|---|---|
Type | filterType | |
Func<IServiceProvider, object> | initializer |
Returns
Type | Description |
---|---|
MigrationHookBuilderBase |
AddFactoriesByType(Type, Func<IServiceProvider, object>)
Adds a hook factory for the given hook type(s).
Declaration
protected void AddFactoriesByType(Type hookType, Func<IServiceProvider, object> initializer)
Parameters
Type | Name | Description |
---|---|---|
Type | hookType | The type to detect hook types from. |
Func<IServiceProvider, object> | initializer | The hook factory. |
Exceptions
Type | Condition |
---|---|
ArgumentException | If |
Build()
Declaration
public virtual IMigrationHookFactoryCollection Build()
Returns
Type | Description |
---|---|
IMigrationHookFactoryCollection |
ClearFactories()
Clears all registered hook factories for all hook types.
Declaration
protected void ClearFactories()
GetFactories()
Gets the currently registered hook factories.
Declaration
protected IEnumerable<KeyValuePair<Type, IEnumerable<IMigrationHookFactory>>> GetFactories()
Returns
Type | Description |
---|---|
IEnumerable<KeyValuePair<Type, IEnumerable<IMigrationHookFactory>>> | The hook factories, by their hook type. |