Skip to content

)} ,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

netstandard2.0, net472

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

NameDescription
T--

Parameters

NameTypeDescription
onNextAction (opens in a new tab)--

Returns: IObserver (opens in a new tab)

2. Overload

public static IObserver<T> Create<T>(Action<T> onNext, Action<Exception> onError)

Type parameters

NameDescription
T--

Parameters

NameTypeDescription
onNextAction (opens in a new tab)--
onErrorAction (opens in a new tab)--

Returns: IObserver (opens in a new tab)

3. Overload

public static IObserver<T> Create<T>(Action<T> onNext, Action onCompleted)

Type parameters

NameDescription
T--

Parameters

NameTypeDescription
onNextAction (opens in a new tab)--
onCompletedAction (opens in a new tab)--

Returns: IObserver (opens in a new tab)

4. Overload

public static IObserver<T> Create<T>(Action<T> onNext, Action<Exception> onError, Action onCompleted)

Type parameters

NameDescription
T--

Parameters

NameTypeDescription
onNextAction (opens in a new tab)--
onErrorAction (opens in a new tab)--
onCompletedAction (opens in a new tab)--

Returns: IObserver (opens in a new tab)