)} ,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, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.0
Overloads¶
- 1.
public static IObserver<T> Create<T>(Action<T> onNext) - 2.
public static IObserver<T> Create<T>(Action<T> onNext, Action<Exception> onError) - 3.
public static IObserver<T> Create<T>(Action<T> onNext, Action onCompleted) - 4.
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