Class BaseAsyncDisposable
- Namespace
- CarinaStudio
- Assembly
- CarinaStudio.AppBase.Core.dll
Base implementation of IAsyncDisposable.
public abstract class BaseAsyncDisposable : IAsyncDisposable
- Inheritance
-
BaseAsyncDisposable
- Implements
- Inherited Members
- Extension Methods
Properties
IsDisposed
Check whether instance has disposed or not.
protected bool IsDisposed { get; }
Property Value
Methods
DisposeAsync()
Dispose the instance asynchronously.
public ValueTask DisposeAsync()
Returns
- ValueTask
Task of disposing the instance.
DisposeAsync(bool)
Called to dispose the instance asynchronously.
protected abstract ValueTask DisposeAsync(bool disposing)
Parameters
disposing
boolTrue to release managed resources also.
Returns
- ValueTask
Task of disposing the instance.
~BaseAsyncDisposable()
Finalizer.
protected ~BaseAsyncDisposable()
VerifyDisposed()
Throw ObjectDisposedException if instance has been disposed.
protected void VerifyDisposed()