,System.Reactive.Concurrency.IScheduler)} ,System.Threading.SynchronizationContext)}
Observer.NotifyOn(IObserver, IScheduler) method¶
Defined in
Type: Observer
Namespace: System.Reactive
Assembly: System.Reactive.dll
Applies to
netstandard2.0
Overloads¶
- 1.
public static IObserver<T> NotifyOn<T>(this IObserver<T> observer, IScheduler scheduler) - 2.
public static IObserver<T> NotifyOn<T>(this IObserver<T> observer, SynchronizationContext context)
1. Overload¶
public static IObserver<T> NotifyOn<T>(this IObserver<T> observer, IScheduler scheduler)
Summary: Schedules the invocation of observer methods on the given scheduler.
Type parameters
| Name | Description |
|---|---|
T | The type of the elements received by the source observer. |
Parameters
| Name | Type | Description |
|---|---|---|
observer | IObserver | The observer to schedule messages for. |
scheduler | [IScheduler](# | Scheduler to schedule observer messages on. |
Returns: IObserver
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | observer or scheduler is null. |
2. Overload¶
public static IObserver<T> NotifyOn<T>(this IObserver<T> observer, SynchronizationContext context)
Summary: Schedules the invocation of observer methods on the given synchronization context.
Type parameters
| Name | Description |
|---|---|
T | The type of the elements received by the source observer. |
Parameters
| Name | Type | Description |
|---|---|---|
observer | IObserver | The observer to schedule messages for. |
context | SynchronizationContext | Synchronization context to schedule observer messages on. |
Returns: IObserver
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | observer or context is null. |