)} ,System.Action{System.Exception})} ,System.Action)} ,System.Action{System.Exception},System.Action)}
Observer.Create(Action) method¶
Defined in
Type: Observer
Namespace: System.Reactive
Assembly: System.Reactive.dll
Applies to
net8.0, net8.0-windows10.0.19041, netstandard2.0
Overloads¶
-
public static IObserver<T> Create<T>(Action<T> onNext) -
public static IObserver<T> Create<T>(Action<T> onNext, Action<Exception> onError) -
public static IObserver<T> Create<T>(Action<T> onNext, Action onCompleted) -
public static IObserver<T> Create<T>(Action<T> onNext, Action<Exception> onError, Action onCompleted)
1. Overload¶
public static IObserver<T> Create<T>(Action<T> onNext)
Type parameters
| Name | Description |
|---|---|
T | -- |
Parameters
| Name | Type | Description |
|---|---|---|
onNext | Action | -- |
Returns: IObserver
2. Overload¶
public static IObserver<T> Create<T>(Action<T> onNext, Action<Exception> onError)
Type parameters
| Name | Description |
|---|---|
T | -- |
Parameters
| Name | Type | Description |
|---|---|---|
onNext | Action | -- |
onError | Action | -- |
Returns: IObserver
3. Overload¶
public static IObserver<T> Create<T>(Action<T> onNext, Action onCompleted)
Type parameters
| Name | Description |
|---|---|
T | -- |
Parameters
| Name | Type | Description |
|---|---|---|
onNext | Action | -- |
onCompleted | Action | -- |
Returns: IObserver
4. Overload¶
public static IObserver<T> Create<T>(Action<T> onNext, Action<Exception> onError, Action onCompleted)
Type parameters
| Name | Description |
|---|---|
T | -- |
Parameters
| Name | Type | Description |
|---|---|---|
onNext | Action | -- |
onError | Action | -- |
onCompleted | Action | -- |
Returns: IObserver