ContainerContainerScope Property

Simple Injector
Gets the container scope that that manages the lifetime of singletons and other container-controlled instances. Use this property to register actions that need to be called and instances that need to be disposed when the container gets disposed.

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

public ContainerScope ContainerScope { get; }

Property Value

Type: ContainerScope
The ContainerOptions instance for this container.
See Also