Class Observer<T>
Simple adapter of
Inheritance
System.Object
Observer<T>
Namespace: CarinaStudio
Assembly: CarinaStudio.AppBase.Core.dll
Syntax
public class Observer<T> : IObserver<T>
Type Parameters
Name | Description |
---|---|
T | Type of value to observe. |
Constructors
| Improve this Doc View SourceObserver(Action, Nullable<Action>, Nullable<Action<Exception>>)
Initialize new Observer<T> instance.
Declaration
public Observer(Action onNext, Action? onCompleted = null, Action<Exception>? onError = null)
Parameters
Type | Name | Description |
---|---|---|
Action | onNext | Action of perform when value changed. |
System. |
onCompleted | Action of receiving |
System. |
onError | Action of receiving |
Observer(Action<T>, Nullable<Action>, Nullable<Action<Exception>>)
Initialize new Observer<T> instance.
Declaration
public Observer(Action<T> onNext, Action? onCompleted = null, Action<Exception>? onError = null)
Parameters
Type | Name | Description |
---|---|---|
Action<T> | onNext | Action of receiving |
System. |
onCompleted | Action of receiving |
System. |
onError | Action of receiving |