A Registration implements lifestyle based caching for a single service and allows building an Expression that describes the creation of the service.
Assembly: SimpleInjector (in SimpleInjector.dll) Version: 5.3.0
The Registration type exposes the following members.
Initializes a new instance of the Registration class.
Gets the Container instance for this registration.
Gets the type that this instance will create.
Gets the Lifestyle this that created this registration.
Gets or sets a value indicating whether the disposal of created instances for this registration should be suppressed or not. The default is false. Having a value of false, does not force an instance to be disposed of, though; Transient instances, for instance, will never be disposed of.
Builds a new Expression with the correct caching (according to the specifications of its Lifestyle) applied.
Builds a FuncTResult delegate for the creation of the ImplementationType. The returned FuncTResult might be intercepted by a Container.ExpressionBuilding event, and initializers (if any) (RegisterInitializerTService(ActionTService)) will be applied.
Builds an Expression that describes the creation of ImplementationType. The returned Expression might be intercepted by a Container.ExpressionBuilding event, and initializers (if any) (RegisterInitializer(ActionInstanceInitializationData, PredicateInitializerContext)) can be applied.
Gets the list of KnownRelationship instances. Note that the list is only available after calling BuildExpression.
Initializes an already created instance and applies properties and initializers to that instance.
Suppressing the supplied DiagnosticType for the given registration.