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: 4.0.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). 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.
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.
|RegisteredServiceType|| Obsolete. |
Gets the registered service type that is currently requested.