Registration Methods

Simple Injector

The Registration type exposes the following members.

Methods

  NameDescription
Public methodBuildExpression
Builds a new Expression with the correct caching (according to the specifications of its Lifestyle) applied.
Protected methodBuildTransientDelegate
Protected methodBuildTransientDelegateTService(FuncTService)
Builds a FuncTResult delegate for the creation of the TService using the supplied instanceCreator. The returned FuncTResult might be intercepted by a Container.ExpressionBuilding event, and the instanceCreator will have been wrapped with a delegate that executes the registered initializers that are applicable to the given TService (if any).
Protected methodBuildTransientExpression
Builds an Expression that describes the creation of ImplementationType. The returned Expression might be intercepted by a Container.ExpressionBuilding event, and the creation of the ImplementationType will have been wrapped with a delegate that executes the registered initializers that are applicable to the InstanceProducer's ServiceType (if any).
Protected methodBuildTransientExpressionTService(FuncTService)
Builds an Expression that describes the creation of the TService using the supplied instanceCreator. The returned Expression might be intercepted by a Container.ExpressionBuilding event, and the instanceCreator will have been wrapped with a delegate that executes the registered initializers that are applicable to the given TService (if any).
Public methodGetRelationships
Gets the list of KnownRelationship instances. Note that the list is only available after calling BuildExpression.
Public methodInitializeInstance
Initializes an already created instance and applies properties and initializers to that instance.
Public methodSuppressDiagnosticWarning
Suppressing the supplied DiagnosticType for the given registration.
Top
See Also

Reference