RegistrationSuppressDisposal Property

Simple Injector
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.

Namespace:  SimpleInjector
Assembly:  SimpleInjector (in SimpleInjector.dll) Version: 5.3.0
Syntax

public bool SuppressDisposal { get; set; }

Property Value

Type: Boolean
Gets or sets a value indicating whether the disposal of created instances for this registration should be suppressed or not.
See Also

Reference