Characteristic Locus
Inheritance System.Object > FilterableChangeObservableBase<C, T> > AnalogJoystick > AnalogTemperature
Implements System.IObservable<C>
Inherited Members System.Object.ToString() System.Object.Equals(System.Object) System.Object.Equals(System.Object, System.Object) System.Object.ReferenceEquals(System.Object, System.Object) System.Object.GetHashCode() System.Object.GetType() System.Object.MemberwiseClone()
Namespace Meadow.Foundation.Sensors
Assembly Meadow.Foundation.dll

Syntax

public abstract class FilterableChangeObservableBase<C, T> : IObservable<C> where C : IChangeResult<T>

Type Parameters

Name Description
C

The IChangeResult notification data.

T

The datatype that contains the notification data. I.e. AtmosphericConditions or decimal.

Constructors

FilterableChangeObservableBase()

Declaration
public FilterableChangeObservableBase()

Properties

_observers

Declaration
protected List<IObserver<C>> _observers { get; set; }

Property Value

Type Description
System.Collections.Generic.List<System.IObserver<C>>

Methods

NotifyObservers(C)

Declaration
protected void NotifyObservers(C changeResult)

Parameters

Type Name Description
C changeResult

Subscribe(IObserver<C>)

Subscribes an IObserver to get notified when a change occurs.

Declaration
public IDisposable Subscribe(IObserver<C> observer)

Parameters

Type Name Description
System.IObserver<C> observer

The IObserver that will receive the change notifications.

Returns

Type Description
System.IDisposable