Constructors
Methods
-
Add(Expression<Func<IContext,
Object>>) Adds an additional Instance constructed by a Lambda Expression using IContext - Add(Instance) Adds an additional Instance against this PluginType
- Add(Object) Configure this type as the supplied value
-
Add(String,
Func<IContext, Adds an additional Instance constructed by a Func using IContextObject>) - Add(Type) Shortcut method to add an additional Instance to this Plugin Type as just a Concrete Type. This will only work if the Concrete Type has no primitive constructor or mandatory Setter arguments.
-
Clear
All() Removes any and all previously registered instance from this plugin type -
Configure(Action<Plugin
Family>) A general purpose method to configure the underlying PluginFamily for this type -
Container
Scoped() Convenience method to mark a PluginFamily as ContainerScoped -
Decorate
All Applies a decorator type to all Instances that return a type that can be cast to this PluginTypeWith(Type, Func<Instance, Boolean>) -
Lifecycle
Is(ILifecycle) Assign a lifecycle to the PluginFamily -
Missing
Named Specify the "on missing named instance" configuration for this PluginTypeInstance Is(Instance) - Singleton() Convenience method to mark a PluginFamily as a Singleton
-
Use(Expression<Func<IContext,
Object>>) Register an Instance constructed by a Lambda Expression using IContext - Use(Instance) Use this configured Instance as is
- Use(Object) Shortcut to add a value by type
- Use(String) Makes a previously registered Instance with the name 'instanceKey' the default Instance for this PluginType
-
Use(String,
Func<IContext, Register an Instance constructed by a Func that uses IContexObject>) - Use(Type) Convenience method that sets the default concrete type of the PluginType. The "concreteType" can only accept types that do not have any primitive constructor arguments. StructureMap has to know how to construct all of the constructor argument types.