Skip to content

)} ,System.Int32)}

Qbservable.Retry(IQbservable) method

Defined in

Type: Qbservable Namespace: System.Reactive.Linq Assembly: System.Reactive.dll

Applies to

netstandard2.0

Overloads

  • 1. public static IQbservable<TSource> Retry<TSource>(this IQbservable<TSource> source)
  • 2. public static IQbservable<TSource> Retry<TSource>(this IQbservable<TSource> source, int retryCount)

1. Overload

public static IQbservable<TSource> Retry<TSource>(this IQbservable<TSource> source)

Summary: Repeats the source observable sequence until it successfully terminates.

Type parameters

NameDescription
TSourceThe type of the elements in the source sequence.

Parameters

NameTypeDescription
source[IQbservable](#Observable sequence to repeat until it successfully terminates.

Returns: IQbservable -- An observable sequence producing the elements of the given sequence repeatedly until it terminates successfully.

Exceptions

TypeCondition
System.ArgumentNullExceptionsource is null.

2. Overload

public static IQbservable<TSource> Retry<TSource>(this IQbservable<TSource> source, int retryCount)

Summary: Repeats the source observable sequence the specified number of times or until it successfully terminates.

Type parameters

NameDescription
TSourceThe type of the elements in the source sequence.

Parameters

NameTypeDescription
source[IQbservable](#Observable sequence to repeat until it successfully terminates.
retryCountintNumber of times to repeat the sequence.

Returns: IQbservable -- An observable sequence producing the elements of the given sequence repeatedly until it terminates successfully.

Exceptions

TypeCondition
System.ArgumentNullExceptionsource is null.
System.ArgumentOutOfRangeExceptionretryCount is less than zero.