ContainerScopeGetAllDisposables Method

Simple Injector
Returns a copy of the list of IDisposable and IAsyncDisposable instances that will be disposed of when this Scope instance is being disposed. The list contains scoped instances that are cached in this Container instance, and instances explicitly registered for disposal using RegisterForDisposal(Object). The instances are returned in order of creation.

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

public Object[] GetAllDisposables()

Return Value

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

Thread safety: This method is not thread safe and should not be used in combination with any of the thread-safe methods.
See Also

Reference