ContainerScopeGetDisposables Method

Simple Injector
Returns the list of IDisposable instances that will be disposed of when this instance is being disposed. The list contains scoped instances that are cached in this instance, and instances explicitly registered for disposal using RegisterForDisposal(IDisposable). The instances are returned in order of creation/registration. When Container.Dispose is called, the scope will ensure Dispose is called on each instance in this list. The instance will be disposed in opposite order as they appear in the list.

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

public IDisposable[] GetDisposables()

Return Value

Type: IDisposable
The list of IDisposable instances that will be disposed of when this Scope instance is being disposed.
See Also

Reference