,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)
Summary:
Subscribes to the observable providing just the onNext delegate.
Type parameters
| Name | Description |
|---|---|
T | The Type. |
Parameters
| Name | Type | Description |
|---|---|---|
source | IObservable | The source. |
onNext | Action | The on next. |
Returns: IDisposable -- A IDisposable.
2. Overload¶
public static IDisposable Subscribe<T>(this IObservable<T> source, Action<T> onNext, Action<Exception> onError)
Summary:
Subscribes to the observable providing both the onNext and
onError delegates.
Type parameters
| Name | Description |
|---|---|
T | The Type. |
Parameters
| Name | Type | Description |
|---|---|---|
source | IObservable | The source. |
onNext | Action | The on next. |
onError | Action | The on error. |
Returns: IDisposable -- A IDisposable.
3. Overload¶
public static IDisposable Subscribe<T>(this IObservable<T> source, Action<T> onNext, Action onCompleted)
Summary:
Subscribes to the observable providing both the onNext and
onCompleted delegates.
Type parameters
| Name | Description |
|---|---|
T | The Type. |
Parameters
| Name | Type | Description |
|---|---|---|
source | IObservable | The source. |
onNext | Action | The on next. |
onCompleted | Action | The 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)
Summary:
Subscribes to the observable providing all three onNext,
onError and onCompleted delegates.
Type parameters
| Name | Description |
|---|---|
T | The Type. |
Parameters
| Name | Type | Description |
|---|---|---|
source | IObservable | The source. |
onNext | Action | The on next. |
onError | Action | The on error. |
onCompleted | Action | The on completed. |
Returns: IDisposable -- A IDisposable.