Skip to content

)}

ObservableBase.Subscribe(IObserver) method

Defined in

Type: ObservableBase Namespace: System.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

NameTypeDescription
observerIObserverObserver that will receive notifications from the observable sequence.

Returns: IDisposable -- Disposable object representing an observer's subscription to the observable sequence.

Exceptions

TypeCondition
System.ArgumentNullExceptionobserver is null.