Allows registering an action delegate that will be called when the container
gets disposed, but before the container disposes any instances.
Namespace: SimpleInjector
Assembly: SimpleInjector (in SimpleInjector.dll) Version: 5.3.0
Syntax
Parameters
- action
- Type: SystemAction
The delegate to run when the scope ends.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | Thrown when one of the arguments is a null reference. |
| ObjectDisposedException | Thrown when the container has been disposed. |
Remarks
See Also