Show / Hide Table of Contents

Class Observer<T>

This class is a fill in for the Reactive extensions so that we don't need to depend on those at the low level

Inheritance
System.Object
Observer<T>
Implements
System.IObserver<T>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Device.Net
Assembly: Device.Net.dll
Syntax
public class Observer<T> : IObserver<T>
Type Parameters
Name Description
T

Constructors

Observer(Action<T>, Action<Exception>, Action)

Declaration
public Observer(Action<T> onNext, Action<Exception> onError = null, Action onCompleted = null)
Parameters
Type Name Description
System.Action<T> onNext
System.Action<System.Exception> onError
System.Action onCompleted

Methods

OnCompleted()

Declaration
public void OnCompleted()

OnError(Exception)

Declaration
public void OnError(Exception error)
Parameters
Type Name Description
System.Exception error

OnNext(T)

Declaration
public void OnNext(T value)
Parameters
Type Name Description
T value

Implements

System.IObserver<T>
In This Article
Back to top Generated by DocFX