Skip to content

,System.Action{--0})}

RxBindingExtensions.Subscribe(IObservable, Action) method

Defined in

Type: RxBindingExtensions Namespace: ReactiveUI.Binding.Observables Assembly: ReactiveUI.Binding.dll

Applies to

net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, net462, net481

public static IDisposable Subscribe<T>(IObservable<T> source, Action<T> onNext)

View source

Summary: Subscribes to the observable with an action for OnNext.

Type parameters

NameDescription
TThe element type.

Parameters

NameTypeDescription
sourceIObservableThe source observable.
onNextActionThe action to invoke on each element.

Returns: IDisposable -- A disposable that unsubscribes when disposed.