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 |
|