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
Thetype exposes the following members.
Initializes a new instance of theclass.
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 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.
Initializes an already created instance and applies properties and initializers to that instance.
Suppressing the supplied DiagnosticType for the given registration.