ExpressionBuildingEventArgs Class

Simple Injector
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

SystemObject
  SystemEventArgs
    SimpleInjectorExpressionBuildingEventArgs

Namespace:  SimpleInjector
Assembly:  SimpleInjector (in SimpleInjector.dll) Version: 5.3.0
Syntax

public class ExpressionBuildingEventArgs : EventArgs

The ExpressionBuildingEventArgs type exposes the following members.

Properties

  NameDescription
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). 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.
Top
See Also

Reference