Skip to main content

DisposerExtensions

A static class in Alta.LifecycleManagement.Runtime, Alta.LifecycleManagement.

Extension methods for adding things to an IDisposer.

Methods​

MemberWhat 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.