Container Events

Simple Injector

The Container type exposes the following members.

Events

  NameDescription
Public eventCode exampleExpressionBuilding
Occurs directly after the creation of the Expression of a registered type is made, but before any initializer and lifestyle specific caching has been applied, allowing the created Expression to be altered. Multiple delegates may handle the same service type.
Public eventCode exampleExpressionBuilt
Occurs after the creation of the Expression of a registered type is complete (the lifestyle has been applied), allowing the created Expression to be wrapped, changed, or replaced. Multiple delegates may handle the same service type.
Public eventCode exampleResolveUnregisteredType
Occurs when an instance of a type is requested that has not been registered explicitly, allowing resolution of unregistered types before the container tries to create the type.
Top
See Also

Reference