Constructors
Methods
- Add``1() Add a new Instance to this PluginType by concrete type
-
Add``1(Expression<Func<IContext,
``0>>) Add an Instance to this type created by a Lambda - Add``1(Expression<Func<``0>>) Add an Instance to this type created by a Lambda
-
Add``1(String,
Func<IContext, Add an Instance to this type created by a Lambda``0>) -
Add``1(String,
Func<``0>) Add an Instance to this type created by a Lambda - Add``1(``0) Adds the object to to the TPluginType
-
Add
Instance(Instance) Add a new Instance to this type -
Add
Instances(Action<IInstance Add multiple Instances to this PluginTypeExpression<`0>>) -
Add
Special(Action<IInstance Access to all of the uncommon Instance typesExpression<`0>>) -
Always
Unique() Forces StructureMap to always use a unique instance to stop the "BuildSession" caching -
Clear
All() Removes any and all previously registered Instances from this plugin type -
Configure(Action<Plugin
Family>) Raw access to the underlying configuration model -
Container
Scoped() Convenience method to mark a PluginFamily as Container scoped -
Decorate
All Register a Func to run against any object of this PluginType immediately after it is created, but before the new object is passed back to the caller. Unlike OnCreationForAll(), DecorateAllWith() gives the the ability to return a different object. Use this method for runtime AOP scenarios or to return a decorator.With(Expression<Func<IContext, `0, `0>>, Func<Instance, Boolean>) -
Decorate
All Register a Func to run against any object of this PluginType immediately after it is created, but before the new object is passed back to the caller. Unlike OnCreationForAll(), DecorateAllWith() gives the the ability to return a different object. Use this method for runtime AOP scenarios or to return a decorator.With(Expression<Func<`0, `0>>, Func<Instance, Boolean>) -
Decorate
All Register a Func to run against any object of this PluginType immediately after it is created, but before the new object is passed back to the caller. Unlike OnCreationForAll(), DecorateAllWith() gives the the ability to return a different object. Use this method for runtime AOP scenarios or to return a decorator.With(String, Func<IContext, `0, `0>, Func<Instance, Boolean>) -
Decorate
All Register a Func to run against any object of this PluginType immediately after it is created, but before the new object is passed back to the caller. Unlike OnCreationForAll(), DecorateAllWith() gives the the ability to return a different object. Use this method for runtime AOP scenarios or to return a decorator.With(String, Func<`0, `0>, Func<Instance, Boolean>) -
Decorate
All Decorates all instances of TPluginType with the concrete type TDecoratorTypeWith``1(Func<Instance, Boolean>) -
Intercept
With(IInterceptor, Adds an Interceptor to only this PluginTypeFunc<Instance, Boolean>) -
Lifecycle
Is(ILifecycle) Registers an ILifecycle for this Plugin Type that executes before any object of this PluginType is created. ILifecycle's can be used to create a custom scope -
Lifecycle
Is``1() Registers an ILifecycle for this Plugin Type that executes before any object of this PluginType is created. ILifecycle's can be used to create a custom scope -
On
Creation Register an Action to run against any object of this PluginType immediately after it is created, but before the new object is passed back to the callerFor All(Expression<Action<IContext, `0>>, Func<Instance, Boolean>) -
On
Creation Register an Action to run against any object of this PluginType immediately after it is created, but before the new object is passed back to the callerFor All(Expression<Action<`0>>, Func<Instance, Boolean>) -
On
Creation Register an Action to run against any object of this PluginType immediately after it is created, but before the new object is passed back to the callerFor All(String, Action<IContext, `0>, Func<Instance, Boolean>) -
On
Creation Register an Action to run against any object of this PluginType immediately after it is created, but before the new object is passed back to the callerFor All(String, Action<`0>, Func<Instance, Boolean>) - Singleton() Convenience method to mark a PluginFamily as a Singleton
- Transient() Convenience method to mark a PluginFamily as a Transient
- Use(String) Makes the default instance of TPluginType the named instance
- Use``1() Specify the default Instance of this PluginType by a concrete type
-
Use``1(Expression<Func<IContext,
``0>>) Use a lambda using the IContext to construct the default instance of the Plugin type - Use``1(Expression<Func<``0>>) Use a lambda to construct the default instance of the Plugin type
-
Use``1(String,
Func<IContext, Use a lambda using the IContext to construct the default instance of the Plugin type Use this signature if your Func is too complicated to be an Expression``0>) -
Use``1(String,
Func<``0>) Use a lambda to construct the default instance of the Plugin type Use this overload if your func is too complicated to be an expression - Use``1(``0) Shorthand to say TheDefault.IsThis(@object)
-
Use
If Register a specific object as the fallback for this plugin typeNone(`0) -
Use
If Defines a fallback instance in case no default was defined for TPluginTypeNone``1() -
Use
If Applies a "Use" on this type that will only apply if no other declaration is made. Used for "default" registrationsNone``1(Expression<Func<IContext, ``0>>) -
Use
If Applies a "Use" on this type that will only apply if no other declaration is made. Used for "default" registrationsNone``1(Expression<Func<``0>>) -
Use
If Applies a "Use" on this type that will only apply if no other declaration is made. Used for "default" registrationsNone``1(String, Func<IContext, ``0>) -
Use
If Applies a "Use" on this type that will only apply if no other declaration is made. Used for "default" registrationsNone``1(String, Func<``0>) -
Use
Instance(Instance) Makes the supplied instance the default Instance for TPluginType
Properties
-
Missing
Named Specify the "on missing named instance" configuration for this PluginTypeInstance Is - alter private