ObservableBase.Subscribe(IObserver) method¶
Defined in
Type: ObservableBaseSystem.Reactive
Assembly: System.Reactive.dll
Applies to
netstandard2.0
public IDisposable Subscribe(IObserver<T> observer)
Summary: Subscribes the given observer to the observable sequence.
Parameters
| Name | Type | Description |
|---|---|---|
observer | IObserver | Observer that will receive notifications from the observable sequence. |
Returns: IDisposable -- Disposable object representing an observer's subscription to the observable sequence.
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | observer is null. |