SynchronizationContextScheduler(SynchronizationContext) constructor¶
Defined in
Type: SynchronizationContextScheduler
Namespace: System.Reactive.Concurrency
Assembly: System.Reactive.dll
Applies to
netstandard2.0
Overloads¶
- 1.
public SynchronizationContextScheduler(SynchronizationContext context) - 2.
public SynchronizationContextScheduler(SynchronizationContext context, bool alwaysPost)
1. Overload¶
public SynchronizationContextScheduler(SynchronizationContext context)
Summary: Creates an object that schedules units of work on the provided SynchronizationContext.
Parameters
| Name | Type | Description |
|---|---|---|
context | SynchronizationContext | Synchronization context to schedule units of work on. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | context is null. |
2. Overload¶
public SynchronizationContextScheduler(SynchronizationContext context, bool alwaysPost)
Summary: Creates an object that schedules units of work on the provided SynchronizationContext.
Parameters
| Name | Type | Description |
|---|---|---|
context | SynchronizationContext | Synchronization context to schedule units of work on. |
alwaysPost | bool | Configures whether scheduling always posts to the synchronization context, regardless whether the caller is on the same synchronization context. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | context is null. |