Observer
Provides a set of static methods for creating observers.
Hides the identity of an observer.
Checks access to the observer for grammar violations. This includes checking for multiple OnError or OnCompleted calls, as well as reentrancy in any of the observer methods.
If a violation is detected, an InvalidOperationException is thrown from the offending observer method call.
Creates an observer from the specified OnNext action.
Creates an observer from the specified OnNext and OnError actions.
Creates an observer from the specified OnNext and OnCompleted actions.
public static IObserver<T> Create<T>(Action<T> onNext, Action<Exception> onError, Action onCompleted)
Creates an observer from the specified OnNext, OnError, and OnCompleted actions.
Schedules the invocation of observer methods on the given scheduler.
Schedules the invocation of observer methods on the given synchronization context.
Synchronizes access to the observer such that its callback methods cannot be called concurrently from multiple threads. This overload is useful when coordinating access to an observer.
Notice reentrant observer callbacks on the same thread are still possible.
Synchronizes access to the observer such that its callback methods cannot be called concurrently. This overload is useful when coordinating access to an observer.
The preventReentrancy parameter configures the type of lock used for synchronization.
Synchronizes access to the observer such that its callback methods cannot be called concurrently by multiple threads, using the specified gate object for use by a MonitorMonitor-based lock.
This overload is useful when coordinating multiple observers that access shared state by synchronizing on a common gate object.
Notice reentrant observer callbacks on the same thread are still possible.
Synchronizes access to the observer such that its callback methods cannot be called concurrently, using the specified asynchronous lock to protect against concurrent and reentrant access.
This overload is useful when coordinating multiple observers that access shared state by synchronizing on a common asynchronous lock.
Creates a notification callback from an observer.
Creates an observer from a notification callback.
Converts a progress object to an observer.
Converts an observer to a progress object.
Converts an observer to a progress object, using the specified scheduler to invoke the progress reporting method.