Class MigrationPlanOptionsCollection
Default IMigrationPlanOptionsCollection implementation.
Implements
Namespace: Tableau.Migration.Engine.Options
Assembly: Tableau.Migration.dll
Syntax
public class MigrationPlanOptionsCollection : IMigrationPlanOptionsCollection
Constructors
MigrationPlanOptionsCollection(ImmutableDictionary<Type, Func<IServiceProvider, object?>>)
Creates a new MigrationPlanOptionsCollection object.
Declaration
public MigrationPlanOptionsCollection(ImmutableDictionary<Type, Func<IServiceProvider, object?>> optionFactories)
Parameters
Type | Name | Description |
---|---|---|
ImmutableDictionary<Type, Func<IServiceProvider, object>> | optionFactories | The options factories by option type. |
Fields
Empty
Gets an empty MigrationPlanOptionsCollection.
Declaration
public static readonly MigrationPlanOptionsCollection Empty
Field Value
Type | Description |
---|---|
MigrationPlanOptionsCollection |
Methods
Get<TOptions>(IServiceProvider)
Gets the options for the given type, or null if no options for the given type have been registered.
Declaration
public TOptions? Get<TOptions>(IServiceProvider services)
Parameters
Type | Name | Description |
---|---|---|
IServiceProvider | services | A service provider. |
Returns
Type | Description |
---|---|
TOptions | The options for the given type, or null. |
Type Parameters
Name | Description |
---|---|
TOptions | The options type. |