Class DisposableSupportsNotifyOnDispose
Describes a disposable object that implements the INotifyOnDispose interface
Inherited Members
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
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
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
System.IDisposable
System.IAsyncDisposable