Show / Hide Table of Contents

Class AsyncDisposable

Base class that simplifies the implementation of IAsyncDisposable and IDisposable interfaces.

Inheritance
object
Disposable
AsyncDisposable
Implements
IDisposableEx
IDisposable
IAsyncDisposable
Inherited Members
Disposable.IsDisposed
Disposable.Dispose(bool)
Disposable.OnFinalize()
Disposable.OnDispose()
Disposable.Dispose()
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: TheXDS.MCART.Types.Base
Assembly: MCART.dll
Syntax
public abstract class AsyncDisposable : Disposable, IDisposableEx, IDisposable, IAsyncDisposable
Remarks

If the class to implement does not contain asynchronous disposal actions, use the Disposable class as the base class.

Methods

| Edit this page View Source

DisposeAsync()

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

Declaration
public ValueTask DisposeAsync()
Returns
Type Description
ValueTask

A task that represents the asynchronous dispose operation.

| Edit this page View Source

OnDisposeAsync()

Performs asynchronous cleanup operations on disposable managed objects for this instance.

Declaration
protected abstract ValueTask OnDisposeAsync()
Returns
Type Description
ValueTask

A ValueTask that allows waiting for the asynchronous operation.

Implements

IDisposableEx
IDisposable
IAsyncDisposable

Extension Methods

Objects.ShallowCopyTo(object, object, Type)
ObjectExtensions.FieldsOf<T>(object)
ObjectExtensions.GetAttribute<T>(object)
ObjectExtensions.GetAttributes<T>(object)
ObjectExtensions.HasAttrValue<TAttribute, TValue>(object, out TValue)
ObjectExtensions.HasAttribute<T>(object)
ObjectExtensions.HasAttribute<T>(object, out T?)
ObjectExtensions.HasAttributes<T>(object, out IEnumerable<T>?)
ObjectExtensions.Is(object?, object?)
ObjectExtensions.IsEither(object, IEnumerable)
ObjectExtensions.IsEither(object, params object[])
ObjectExtensions.IsNeither(object, IEnumerable)
ObjectExtensions.IsNeither(object, params object[])
ObjectExtensions.IsNot(object?, object?)
ObjectExtensions.PropertiesOf<T>(object)
ObjectExtensions.WhichAre(object, IEnumerable<object>)
ObjectExtensions.WhichAre(object, params object[])
Common.IfNotNull<T>(T?, Action<T>)
Objects.Itself<T>(T)
Objects.ShallowCopyTo<T>(T, T)
CollectionExtensions.PushInto<TItem, TCollection>(TItem, ICollection<TCollection>)
DictionaryExtensions.PushInto<TKey, TValue>(TValue, TKey, IDictionary<TKey, TValue>)
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX