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 |
---|---|---|
Boolean | supportFinalizer |
Methods
AsyncDispose()
Performs application-defined tasks associated with freeing, releasing, or resetting resources asynchronously
Declaration
protected override ValueTask AsyncDispose()
Returns
Type | Description |
---|---|
ValueTask |
Overrides
Dispose(Boolean)
Method to be overridden to implement custom disposal logic.
Declaration
protected override void Dispose(bool disposeManaged)
Parameters
Type | Name | Description |
---|---|---|
Boolean | disposeManaged | It is set to true on Dispose() call. |
Overrides
Events
OnDispose
Fires if the object is about to dispose.
Declaration
public event EventHandler<bool> OnDispose
Event Type
Type | Description |
---|---|
EventHandler<Boolean> |