Observable.Retry(IObservable) method¶
Defined in
Type: Observable
Namespace: System.Reactive.Linq
Assembly: System.Reactive.dll
Applies to
netstandard2.0
Overloads¶
- 1.
public static IObservable<TSource> Retry<TSource>(this IObservable<TSource> source) - 2.
public static IObservable<TSource> Retry<TSource>(this IObservable<TSource> source, int retryCount)
1. Overload¶
public static IObservable<TSource> Retry<TSource>(this IObservable<TSource> source)
Summary: Repeats the source observable sequence until it successfully terminates.
Type parameters
| Name | Description |
|---|---|
TSource | The type of the elements in the source sequence. |
Parameters
| Name | Type | Description |
|---|---|---|
source | IObservable | Observable sequence to repeat until it successfully terminates. |
Returns: IObservable
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | source is null. |
2. Overload¶
public static IObservable<TSource> Retry<TSource>(this IObservable<TSource> source, int retryCount)
Summary: Repeats the source observable sequence the specified number of times or until it successfully terminates.
Type parameters
| Name | Description |
|---|---|
TSource | The type of the elements in the source sequence. |
Parameters
| Name | Type | Description |
|---|---|---|
source | IObservable | Observable sequence to repeat until it successfully terminates. |
retryCount | int | Number of times to repeat the sequence. |
Returns: IObservable
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | source is null. |
| System.ArgumentOutOfRangeException | retryCount is less than zero. |