Subject.Subscribe(IObserver) method¶
Defined in
Type: SubjectSystem.Reactive.Subjects
Assembly: System.Reactive.dll
Applies to
netstandard2.0
public override IDisposable Subscribe(IObserver<T> observer)
Summary: Subscribes an observer to the subject.
Parameters
| Name | Type | Description |
|---|---|---|
observer | IObserver | Observer to subscribe to the subject. |
Returns: IDisposable -- Disposable object that can be used to unsubscribe the observer from the subject.
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | observer is null. |