ContextDisposable(SynchronizationContext, IDisposable) constructor¶
Defined in
Type: ContextDisposable
Namespace: System.Reactive.Disposables
Assembly: System.Reactive.dll
Applies to
netstandard2.0
public ContextDisposable(SynchronizationContext context, IDisposable disposable)
Summary: Initializes a new instance of the ContextDisposable class that uses the specified SynchronizationContext on which to dispose the specified disposable resource.
Parameters
| Name | Type | Description |
|---|---|---|
context | SynchronizationContext | Context to perform disposal on. |
disposable | IDisposable | Disposable whose Dispose operation to run on the given synchronization context. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | context or disposable is null. |