Table of Contents

Method ObserveOn

Namespace
Bonsai.Design
Assembly
Bonsai.Design.dll

ObserveOn<TSource>(IObservable<TSource>, Control)

Wraps the source sequence in order to run its observer callbacks in the UI thread of the specified control.

public static IObservable<TSource> ObserveOn<TSource>(this IObservable<TSource> source, Control control)

Parameters

source IObservable<TSource>

The observable sequence whose notifications will be scheduled in the UI thread of the specified control.

control Control

A Control object whose underlying handle will be used to schedule notifications.

Returns

IObservable<TSource>

An observable sequence with the same elements as the source sequence, but where all notifications will be raised in the UI thread of the specified control.

Type Parameters

TSource

The type of the elements in the source sequence.