Class CancellationDisposable
Represents a disposable resource that has an associated Cancellation
Inherited Members
Namespace: System.Reactive.Disposables
Assembly: System.Reactive.Core.dll
Syntax
public sealed class CancellationDisposable : ICancelable, IDisposable
Constructors
| Improve this Doc View SourceCancellationDisposable()
Initializes a new instance of the Cancellation
Declaration
public CancellationDisposable()
CancellationDisposable(CancellationTokenSource)
Initializes a new instance of the Cancellation
Declaration
public CancellationDisposable(CancellationTokenSource cts)
Parameters
Type | Name | Description |
---|---|---|
Cancellation |
cts | Cancellation |
Exceptions
Type | Condition |
---|---|
Argument |
|
Properties
| Improve this Doc View SourceIsDisposed
Gets a value that indicates whether the object is disposed.
Declaration
public bool IsDisposed { get; }
Property Value
Type | Description |
---|---|
Boolean |
Token
Gets the Cancellation
Declaration
public CancellationToken Token { get; }
Property Value
Type | Description |
---|---|
Cancellation |
Methods
| Improve this Doc View SourceDispose()
Cancels the underlying Cancellation
Declaration
public void Dispose()