Provides data for and interaction with the
ExpressionBuilding event of
the Container. An observer can change the
Expression property to change the component that is
currently being built.
Inheritance Hierarchy
SystemEventArgs
SimpleInjectorExpressionBuildingEventArgs
Namespace: SimpleInjector
Assembly: SimpleInjector (in SimpleInjector.dll) Version: 5.3.0
Syntax
The ExpressionBuildingEventArgs type exposes the following members.
Properties
Name | Description | |
---|---|---|
Expression | Gets or sets the currently registered
Expression. | |
KnownImplementationType |
Gets the type that is known to be returned by the
Expression (most often the implementation
type used in the Register call). If the Expression is changed, the new expression
must also return an instance of type KnownImplementationType or a sub type.
This information must be described in the new Expression.
| |
KnownRelationships |
Gets the collection of currently known relationships. This information is used by the Diagnostics
Debug View. Change the contents of this collection to represent the changes made to the
Expression property (if any). This allows
the Diagnostics Debug View to analyze those new relationships as well.
| |
Lifestyle | Gets the lifestyle for the component that is currently being built. |
See Also