Skip to content

,System.Action{--0})} ,System.Action{--0},System.Action{System.Exception})} ,System.Action{--0},System.Action)} ,System.Action{--0},System.Action{System.Exception},System.Action)}

SubscribeMixins.Subscribe(IObservable, Action) method

Defined in

Type: SubscribeMixins Namespace: Minimalist.Reactive Assembly: Minimalist.Reactive.dll

Applies to

netstandard2.0

Overloads

  • 1. public static IDisposable Subscribe<T>(this IObservable<T> source, Action<T> onNext)
  • 2. public static IDisposable Subscribe<T>(this IObservable<T> source, Action<T> onNext, Action<Exception> onError)
  • 3. public static IDisposable Subscribe<T>(this IObservable<T> source, Action<T> onNext, Action onCompleted)
  • 4. public static IDisposable Subscribe<T>(this IObservable<T> source, Action<T> onNext, Action<Exception> onError, Action onCompleted)

1. Overload

public static IDisposable Subscribe<T>(this IObservable<T> source, Action<T> onNext)

View source

Summary: Subscribes to the observable providing just the onNext delegate.

Type parameters

NameDescription
TThe Type.

Parameters

NameTypeDescription
sourceIObservableThe source.
onNextActionThe on next.

Returns: IDisposable -- A IDisposable.

2. Overload

public static IDisposable Subscribe<T>(this IObservable<T> source, Action<T> onNext, Action<Exception> onError)

View source

Summary: Subscribes to the observable providing both the onNext and onError delegates.

Type parameters

NameDescription
TThe Type.

Parameters

NameTypeDescription
sourceIObservableThe source.
onNextActionThe on next.
onErrorActionThe on error.

Returns: IDisposable -- A IDisposable.

3. Overload

public static IDisposable Subscribe<T>(this IObservable<T> source, Action<T> onNext, Action onCompleted)

View source

Summary: Subscribes to the observable providing both the onNext and onCompleted delegates.

Type parameters

NameDescription
TThe Type.

Parameters

NameTypeDescription
sourceIObservableThe source.
onNextActionThe on next.
onCompletedActionThe on completed.

Returns: IDisposable -- A IDisposable.

4. Overload

public static IDisposable Subscribe<T>(this IObservable<T> source, Action<T> onNext, Action<Exception> onError, Action onCompleted)

View source

Summary: Subscribes to the observable providing all three onNext, onError and onCompleted delegates.

Type parameters

NameDescription
TThe Type.

Parameters

NameTypeDescription
sourceIObservableThe source.
onNextActionThe on next.
onErrorActionThe on error.
onCompletedActionThe on completed.

Returns: IDisposable -- A IDisposable.