)} ,System.Action{--0})} ,System.Action{--0},System.Action{System.Exception})} ,System.Action{--0},System.Action)} ,System.Action{--0},System.Action{System.Exception},System.Action)}
SubscribeExtensions.Subscribe(IObservable) method¶
Defined in
Type: SubscribeExtensions
Namespace: ReactiveUI.Primitives
Assembly: ReactiveUI.Primitives.Core.dll
Applies to
net10.0, net10.0, net10.0-desktop1.0, net10.0-desktop1.0, net10.0-browserwasm1.0, net10.0-browserwasm1.0, net9.0, net9.0, net9.0-desktop1.0, net9.0-desktop1.0, net9.0-browserwasm1.0, net9.0-browserwasm1.0, net8.0, net8.0, net8.0-ios17.5, net8.0-macos14.5, net8.0-macos14.5, net8.0-macos14.2, net8.0-macos14.2, net8.0-maccatalyst17.5, net8.0-maccatalyst17.5, net8.0-tvos17.2, net8.0-tvos17.2, net8.0-ios17.5, netstandard2.1, netstandard2.1, net481, net462, net462, net481
Overloads¶
- 1.
public static IDisposable Subscribe<T>(this IObservable<T> source) where T : notnull - 2.
public static IDisposable Subscribe<T>(this IObservable<T> source, Action<T> onNext) where T : notnull - 3.
public static IDisposable Subscribe<T>(this IObservable<T> source, Action<T> onNext, Action<Exception> onError) where T : notnull - 4.
public static IDisposable Subscribe<T>(this IObservable<T> source, Action<T> onNext, Action onCompleted) where T : notnull - 5.
public static IDisposable Subscribe<T>(this IObservable<T> source, Action<T> onNext, Action<Exception> onError, Action onCompleted) where T : notnull
1. Overload¶
public static IDisposable Subscribe<T>(this IObservable<T> source) where T : notnull
Type parameters
| Name | Description |
|---|---|
T | -- |
Parameters
| Name | Type | Description |
|---|---|---|
source | IObservable | -- |
Returns: IDisposable
2. Overload¶
public static IDisposable Subscribe<T>(this IObservable<T> source, Action<T> onNext) where T : notnull
Type parameters
| Name | Description |
|---|---|
T | -- |
Parameters
| Name | Type | Description |
|---|---|---|
source | IObservable | -- |
onNext | Action | -- |
Returns: IDisposable
3. Overload¶
public static IDisposable Subscribe<T>(this IObservable<T> source, Action<T> onNext, Action<Exception> onError) where T : notnull
Type parameters
| Name | Description |
|---|---|
T | -- |
Parameters
| Name | Type | Description |
|---|---|---|
source | IObservable | -- |
onNext | Action | -- |
onError | Action | -- |
Returns: IDisposable
4. Overload¶
public static IDisposable Subscribe<T>(this IObservable<T> source, Action<T> onNext, Action onCompleted) where T : notnull
Type parameters
| Name | Description |
|---|---|
T | -- |
Parameters
| Name | Type | Description |
|---|---|---|
source | IObservable | -- |
onNext | Action | -- |
onCompleted | Action | -- |
Returns: IDisposable
5. Overload¶
public static IDisposable Subscribe<T>(this IObservable<T> source, Action<T> onNext, Action<Exception> onError, Action onCompleted) where T : notnull
Type parameters
| Name | Description |
|---|---|
T | -- |
Parameters
| Name | Type | Description |
|---|---|---|
source | IObservable | -- |
onNext | Action | -- |
onError | Action | -- |
onCompleted | Action | -- |
Returns: IDisposable