ExpressionBuildingEventArgs Properties

Simple Injector

The ExpressionBuildingEventArgs type exposes the following members.


Public propertyExpression
Gets or sets the currently registered Expression.
Public propertyKnownImplementationType
Gets the type that is known to be returned by the Expression (most often the implementation type used in the Register call). This type will be a derivative of RegisteredServiceType (or or RegisteredServiceType itself). 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.
Public propertyKnownRelationships
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.
Public propertyLifestyle
Gets the lifestyle for the component that is currently being built.
Public propertyRegisteredServiceType Obsolete.
Gets the registered service type that is currently requested.
See Also