Skip to content

)}

SubjectBase.Subscribe(IObserver) method

Defined in

Type: SubjectBase Namespace: System.Reactive.Subjects Assembly: System.Reactive.dll

Applies to

net8.0, net8.0-windows10.0.19041, netstandard2.0

public abstract IDisposable Subscribe(IObserver<T> observer)

Inherited documentation

These docs were inherited from IObservable<T>. The member doesn't override them on this type.

Summary: Notifies the provider that an observer is to receive notifications.

Parameters

NameTypeDescription
observerIObserverThe object that is to receive notifications.

Returns: IDisposable -- A reference to an interface that allows observers to stop receiving notifications before the provider has finished sending them.