<PackageReference Include="System.Reactive" Version="4.3.2" />

DispatcherScheduler

Represents an object that schedules units of work on a Dispatcher.
public static DispatcherScheduler Current { get; }

Gets the scheduler that schedules work on the Dispatcher for the current thread.

public static DispatcherScheduler Instance { get; }

Gets the scheduler that schedules work on the current Dispatcher.

public Dispatcher Dispatcher { get; }

Gets the Dispatcher associated with the DispatcherScheduler.

public DispatcherPriority Priority { get; }

Gets the priority at which work items will be dispatched.

public DispatcherScheduler(Dispatcher dispatcher)

Constructs a DispatcherScheduler that schedules units of work on the given Dispatcher.

public DispatcherScheduler(Dispatcher dispatcher, DispatcherPriority priority)

Constructs a DispatcherScheduler that schedules units of work on the given Dispatcher at the given priority.

public IDisposable SchedulePeriodic<TState>(TState state, TimeSpan period, Func<TState, TState> action)

Schedules a periodic piece of work on the dispatcher, using a DispatcherTimer object.