Class DisposableSupportsNotifyOnDispose

Describes a disposable object that implements the INotifyOnDispose interface

Inheritance
System.Object
Disposable
DisposableSupportsNotifyOnDispose
Implements
IDisposableEx
System.IDisposable
System.IAsyncDisposable
INotifyOnDispose
Inherited Members
Disposable.CheckNotDisposed()
Disposable.Dispose()
Disposable.DisposeAsync()
Disposable.Disposed
Disposable.Disposing
Namespace: Solti.Utils.Primitives.Patterns
Assembly: Solti.Utils.Primitives.dll
Syntax
public class DisposableSupportsNotifyOnDispose : Disposable, IDisposableEx, INotifyOnDispose

Constructors

DisposableSupportsNotifyOnDispose(Boolean)

Creates a new DisposableSupportsNotifyOnDispose instance.

Declaration
public DisposableSupportsNotifyOnDispose(bool supportFinalizer = false)
Parameters
Type Name Description
System.Boolean supportFinalizer

Methods

AsyncDispose()

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

Declaration
protected override ValueTask AsyncDispose()
Returns
Type Description
System.Threading.Tasks.ValueTask
Overrides
Disposable.AsyncDispose()

Dispose(Boolean)

Method to be overridden to implement custom disposal logic.

Declaration
protected override void Dispose(bool disposeManaged)
Parameters
Type Name Description
System.Boolean disposeManaged

It is set to true on System.IDisposable.Dispose call.

Overrides
Disposable.Dispose(Boolean)

Events

OnDispose

Fires if the object is about to dispose.

Declaration
public event EventHandler<bool> OnDispose
Event Type
Type Description
System.EventHandler<System.Boolean>

Implements

IDisposableEx
System.IDisposable
System.IAsyncDisposable
INotifyOnDispose
In This Article
Back to top Generated by DocFX