Qbservable.Repeat(IQbservableProvider, TResult) method¶
Defined in
Type: Qbservable
Namespace: System.Reactive.Linq
Assembly: System.Reactive.dll
Applies to
netstandard2.0
Overloads¶
- 1.
public static IQbservable<TResult> Repeat<TResult>(this IQbservableProvider provider, TResult value) - 2.
public static IQbservable<TResult> Repeat<TResult>(this IQbservableProvider provider, TResult value, int repeatCount) - 3.
public static IQbservable<TResult> Repeat<TResult>(this IQbservableProvider provider, TResult value, int repeatCount, IScheduler scheduler) - 4.
public static IQbservable<TResult> Repeat<TResult>(this IQbservableProvider provider, TResult value, IScheduler scheduler) - 5.
public static IQbservable<TSource> Repeat<TSource>(this IQbservable<TSource> source) - 6.
public static IQbservable<TSource> Repeat<TSource>(this IQbservable<TSource> source, int repeatCount)
1. Overload¶
public static IQbservable<TResult> Repeat<TResult>(this IQbservableProvider provider, TResult value)
Summary: Generates an observable sequence that repeats the given element infinitely.
Type parameters
| Name | Description |
|---|---|
TResult | The type of the element that will be repeated in the produced sequence. |
Parameters
| Name | Type | Description |
|---|---|---|
provider | [IQbservableProvider](# | Query provider used to construct the [IQbservable](# data source. |
value | TResult | Element to repeat. |
Returns: IQbservable
2. Overload¶
public static IQbservable<TResult> Repeat<TResult>(this IQbservableProvider provider, TResult value, int repeatCount)
Summary: Generates an observable sequence that repeats the given element the specified number of times.
Type parameters
| Name | Description |
|---|---|
TResult | The type of the element that will be repeated in the produced sequence. |
Parameters
| Name | Type | Description |
|---|---|---|
provider | [IQbservableProvider](# | Query provider used to construct the [IQbservable](# data source. |
value | TResult | Element to repeat. |
repeatCount | int | Number of times to repeat the element. |
Returns: IQbservable
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentOutOfRangeException | repeatCount is less than zero. |
3. Overload¶
public static IQbservable<TResult> Repeat<TResult>(this IQbservableProvider provider, TResult value, int repeatCount, IScheduler scheduler)
Summary: Generates an observable sequence that repeats the given element the specified number of times, using the specified scheduler to send out observer messages.
Type parameters
| Name | Description |
|---|---|
TResult | The type of the element that will be repeated in the produced sequence. |
Parameters
| Name | Type | Description |
|---|---|---|
provider | [IQbservableProvider](# | Query provider used to construct the [IQbservable](# data source. |
value | TResult | Element to repeat. |
repeatCount | int | Number of times to repeat the element. |
scheduler | [IScheduler](# | Scheduler to run the producer loop on. |
Returns: IQbservable
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentOutOfRangeException | repeatCount is less than zero. |
| System.ArgumentNullException | scheduler is null. |
4. Overload¶
public static IQbservable<TResult> Repeat<TResult>(this IQbservableProvider provider, TResult value, IScheduler scheduler)
Summary: Generates an observable sequence that repeats the given element infinitely, using the specified scheduler to send out observer messages.
Type parameters
| Name | Description |
|---|---|
TResult | The type of the element that will be repeated in the produced sequence. |
Parameters
| Name | Type | Description |
|---|---|---|
provider | [IQbservableProvider](# | Query provider used to construct the [IQbservable](# data source. |
value | TResult | Element to repeat. |
scheduler | [IScheduler](# | Scheduler to run the producer loop on. |
Returns: IQbservable
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | scheduler is null. |
5. Overload¶
public static IQbservable<TSource> Repeat<TSource>(this IQbservable<TSource> source)
Summary: Repeats the observable sequence indefinitely.
Type parameters
| Name | Description |
|---|---|
TSource | The type of the elements in the source sequence. |
Parameters
| Name | Type | Description |
|---|---|---|
source | [IQbservable | Observable sequence to repeat. |
Returns: IQbservable
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | source is null. |
6. Overload¶
public static IQbservable<TSource> Repeat<TSource>(this IQbservable<TSource> source, int repeatCount)
Summary: Repeats the observable sequence a specified number of times.
Type parameters
| Name | Description |
|---|---|
TSource | The type of the elements in the source sequence. |
Parameters
| Name | Type | Description |
|---|---|---|
source | [IQbservable | Observable sequence to repeat. |
repeatCount | int | Number of times to repeat the sequence. |
Returns: IQbservable
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | source is null. |
| System.ArgumentOutOfRangeException | repeatCount is less than zero. |