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¶
| Name | Summary |
|---|---|
| .ctor | Initializes a new instance of the [CancellationDisposable](# class that uses an existing... |
Properties¶
| Name | Summary |
|---|---|
| Token | Gets the CancellationToken used by this [CancellationDisposable](# |
| IsDisposed | Gets a value that indicates whether the object is disposed. |
Methods¶
| Name | Summary |
|---|---|
| Dispose | Cancels the underlying CancellationTokenSource. |