Class ControlObservable
Provides a set of static methods for subscribing to observable sequences using Windows Forms controls.
public static class ControlObservable
- Inheritance
-
ControlObservable
- Inherited Members
Methods
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
sourceIObservable<TSource>The observable sequence whose notifications will be scheduled in the UI thread of the specified control.
controlControlA Control object whose underlying handle will be used to schedule notifications.
Returns
- IObservable<TSource>
An observable sequence with the same elements as the
sourcesequence, but where all notifications will be raised in the UI thread of the specifiedcontrol.
Type Parameters
TSourceThe type of the elements in the
sourcesequence.