Share via


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
Public methodStatic member AsObserver<T> Hides the identity of an observer.
Public methodStatic member Create<T>(Action<T>) Creates an observer from the specified OnNext action.
Public methodStatic member Create<T>(Action<T>, Action) Creates an observer from the specified OnNext and OnCompleted actions.
Public methodStatic member Create<T>(Action<T>, Action<Exception>) Creates an observer from the specified OnNext and OnError actions.
Public methodStatic member Create<T>(Action<T>, Action<Exception>, Action) Creates an observer from the specified OnNext, OnError, and OnCompleted actions.
Public methodStatic member Synchronize<T>(IObserver<T>)
Public methodStatic member Synchronize<T>(IObserver<T>, Object)
Public methodStatic member ToNotifier<T> Creates a notification callback from an observer.
Public methodStatic member 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.

See Also

Reference

System.Reactive Namespace