Observer Class
Provides a set of static methods for creating observers.
Inheritance Hierarchy
System.Object
System.Reactive.Observer
Namespace: System.Reactive
Assembly: System.Reactive (in System.Reactive.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public NotInheritable Class Observer
'Usage
public static class Observer
[ExtensionAttribute]
public ref class Observer abstract sealed
[<AbstractClassAttribute>]
[<SealedAttribute>]
type Observer = class end
public final class Observer
The Observer type exposes the following members.
Methods
Name | Description | |
---|---|---|
AsObserver<T> | Hides the identity of an observer. | |
Create<T>(Action<T>) | Creates an observer from the specified OnNext action. | |
Create<T>(Action<T>, Action) | Creates an observer from the specified OnNext and OnCompleted actions. | |
Create<T>(Action<T>, Action<Exception>) | Creates an observer from the specified OnNext and OnError actions. | |
Create<T>(Action<T>, Action<Exception>, Action) | Creates an observer from the specified OnNext, OnError, and OnCompleted actions. | |
Synchronize<T>(IObserver<T>) | ||
Synchronize<T>(IObserver<T>, Object) | ||
ToNotifier<T> | Creates a notification callback from an observer. | |
ToObserver<T> | Creates an observer from a notification callback. |
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.