Skip to content

CancellationDisposable class

Defined in

Namespace: System.Reactive.Disposables Assembly: System.Reactive.dll Full name: System.Reactive.Disposables.CancellationDisposable Modifiers: public sealed

Summary

Represents a disposable resource that has an associated CancellationToken that will be set to the cancellation requested state upon disposal.

Applies to

netstandard2.0

Class hierarchy
classDiagram
class CancellationDisposable
class ICancelable {
    <>
}
ICancelable <|.. CancellationDisposable
class IDisposable {
    <>
}
IDisposable <|.. CancellationDisposable

Implements: ICancelable, IDisposable

Constructors

NameSummary
.ctorInitializes a new instance of the [CancellationDisposable](# class that uses an existing...

Properties

NameSummary
TokenGets the CancellationToken used by this [CancellationDisposable](#
IsDisposedGets a value that indicates whether the object is disposed.

Methods

NameSummary
DisposeCancels the underlying CancellationTokenSource.
Inherited members