Table of Contents

Class ActionDisposable

Namespace
Acuit.Pinpoint.Common.Disposables
Assembly
Acuit.Pinpoint.Common.dll

A disposable that invokes an action when disposed.

public sealed class ActionDisposable : IDisposable
Inheritance
ActionDisposable
Implements
Inherited Members

Constructors

ActionDisposable(Action)

Initializes a new instance of the ActionDisposable class.

public ActionDisposable(Action action)

Parameters

action Action

The action to invoke upon disposal. The action will only ever be invoked once, even if Dispose() is called multiple times.

Exceptions

ArgumentNullException

action is null.

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()