,System.Action{--0})} ,System.Action{--0},System.Action)} ,System.Action{--0},System.Action{System.Exception})} ,System.Action{--0},System.Action{System.Exception},System.Action)} ,System.IObserver{--0})}
Observable.Do(IObservable, Action) method¶
Defined in
Type: Observable
Namespace: System.Reactive.Linq
Assembly: System.Reactive.dll
Applies to
net8.0, net8.0-windows10.0.19041, netstandard2.0
Overloads¶
-
public static IObservable<TSource> Do<TSource>(this IObservable<TSource> source, Action<TSource> onNext) -
public static IObservable<TSource> Do<TSource>(this IObservable<TSource> source, Action<TSource> onNext, Action onCompleted) -
public static IObservable<TSource> Do<TSource>(this IObservable<TSource> source, Action<TSource> onNext, Action<Exception> onError) -
public static IObservable<TSource> Do<TSource>(this IObservable<TSource> source, Action<TSource> onNext, Action<Exception> onError, Action onCompleted) -
public static IObservable<TSource> Do<TSource>(this IObservable<TSource> source, IObserver<TSource> observer)
1. Overload¶
public static IObservable<TSource> Do<TSource>(this IObservable<TSource> source, Action<TSource> onNext)
Type parameters
| Name | Description |
|---|---|
TSource | -- |
Parameters
| Name | Type | Description |
|---|---|---|
source | IObservable | -- |
onNext | Action | -- |
Returns: IObservable
2. Overload¶
public static IObservable<TSource> Do<TSource>(this IObservable<TSource> source, Action<TSource> onNext, Action onCompleted)
Type parameters
| Name | Description |
|---|---|
TSource | -- |
Parameters
| Name | Type | Description |
|---|---|---|
source | IObservable | -- |
onNext | Action | -- |
onCompleted | Action | -- |
Returns: IObservable
3. Overload¶
public static IObservable<TSource> Do<TSource>(this IObservable<TSource> source, Action<TSource> onNext, Action<Exception> onError)
Type parameters
| Name | Description |
|---|---|
TSource | -- |
Parameters
| Name | Type | Description |
|---|---|---|
source | IObservable | -- |
onNext | Action | -- |
onError | Action | -- |
Returns: IObservable
4. Overload¶
public static IObservable<TSource> Do<TSource>(this IObservable<TSource> source, Action<TSource> onNext, Action<Exception> onError, Action onCompleted)
Type parameters
| Name | Description |
|---|---|
TSource | -- |
Parameters
| Name | Type | Description |
|---|---|---|
source | IObservable | -- |
onNext | Action | -- |
onError | Action | -- |
onCompleted | Action | -- |
Returns: IObservable
5. Overload¶
public static IObservable<TSource> Do<TSource>(this IObservable<TSource> source, IObserver<TSource> observer)
Type parameters
| Name | Description |
|---|---|
TSource | -- |
Parameters
| Name | Type | Description |
|---|---|---|
source | IObservable | -- |
observer | IObserver | -- |
Returns: IObservable