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.
Assembly: SimpleInjector (in SimpleInjector.dll) Version: 5.3.0
public class ExpressionBuildingEventArgs : EventArgs
Public Class ExpressionBuildingEventArgs Inherits EventArgs
Thetype exposes the following members.
Gets or sets the currently registered Expression.
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.
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.
Gets the lifestyle for the component that is currently being built.