DisposerExtensions
A static class in Alta.LifecycleManagement.Runtime, Alta.LifecycleManagement.
Extension methods for adding things to an IDisposer.
- Listed in Other Alta assemblies
- Attributes
Extension,Preserve,UsedImplicitly
Methods
| Member | What it is |
|---|---|
static T AddToDisposer<T>(T disposable, IDisposer disposer) | Adds the disposable to a disposer and returns the disposable. |
static IDisposer OnDisposal(IDisposer disposer, Action action) | Runs an action when the disposer is disposed. Returns the disposer for chaining. |