Skip to content

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

NameTypeDescription
contextSynchronizationContextSynchronization context to schedule units of work on.

Exceptions

TypeCondition
System.ArgumentNullExceptioncontext is null.

2. Overload

public SynchronizationContextScheduler(SynchronizationContext context, bool alwaysPost)

Summary: Creates an object that schedules units of work on the provided SynchronizationContext.

Parameters

NameTypeDescription
contextSynchronizationContextSynchronization context to schedule units of work on.
alwaysPostboolConfigures whether scheduling always posts to the synchronization context, regardless whether the caller is on the same synchronization context.

Exceptions

TypeCondition
System.ArgumentNullExceptioncontext is null.