Udostępnij za pośrednictwem


AsyncDisposableObject Class

Definition

A class to be used to implement the lifetime management of another class.

public class AsyncDisposableObject : IAsyncDisposable
type AsyncDisposableObject = class
    interface IAsyncDisposable
Public Class AsyncDisposableObject
Implements IAsyncDisposable
Inheritance
AsyncDisposableObject
Derived
Implements

Constructors

AsyncDisposableObject()

Properties

DisposeToken

Gets a token that signals cancellation when this object is disposed.

IsDisposed

Gets a value indicating whether the object has been disposed once, protects against double disposal.

IsDisposing

Gets a value indicating whether the object is in the process of being disposed.

Methods

DisposeAsync()

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

DisposeCoreAsync()

Standard virtual overload for IAsyncDisposable pattern.

ThrowIfDisposed()

Throws an ObjectDisposedException if this object has been disposed.

Events

Disposing

Raised when the event is being disposed, while it is still accessible.

Applies to