},System.Linq.Expressions.Expression{System.Func{--0,--0}},System.Linq.Expressions.Expression{System.Func{--0,--1}})} },System.Linq.Expressions.Expression{System.Func{--0,--0}},System.Linq.Expressions.Expression{System.Func{--0,--1}},System.Reactive.Concurrency.IScheduler)} },System.Linq.Expressions.Expression{System.Func{--0,--0}},System.Linq.Expressions.Expression{System.Func{--0,--1}},System.Linq.Expressions.Expression{System.Func{--0,System.TimeSpan}})} },System.Linq.Expressions.Expression{System.Func{--0,--0}},System.Linq.Expressions.Expression{System.Func{--0,--1}},System.Linq.Expressions.Expression{System.Func{--0,System.DateTimeOffset}})} },System.Linq.Expressions.Expression{System.Func{--0,--0}},System.Linq.Expressions.Expression{System.Func{--0,--1}},System.Linq.Expressions.Expression{System.Func{--0,System.TimeSpan}},System.Reactive.Concurrency.IScheduler)} },System.Linq.Expressions.Expression{System.Func{--0,--0}},System.Linq.Expressions.Expression{System.Func{--0,--1}},System.Linq.Expressions.Expression{System.Func{--0,System.DateTimeOffset}},System.Reactive.Concurrency.IScheduler)}
Qbservable.Generate(IQbservableProvider, TState, Expression>, Expression>, Expression>) method¶
Defined in
Type: Qbservable
Namespace: System.Reactive.Linq
Assembly: System.Reactive.dll
Applies to
netstandard2.0
Overloads¶
- 1.
public static IQbservable<TResult> Generate<TState, TResult>(this IQbservableProvider provider, TState initialState, Expression<Func<TState, bool>> condition, Expression<Func<TState, TState>> iterate, Expression<Func<TState, TResult>> resultSelector) - 2.
public static IQbservable<TResult> Generate<TState, TResult>(this IQbservableProvider provider, TState initialState, Expression<Func<TState, bool>> condition, Expression<Func<TState, TState>> iterate, Expression<Func<TState, TResult>> resultSelector, IScheduler scheduler) - 3.
public static IQbservable<TResult> Generate<TState, TResult>(this IQbservableProvider provider, TState initialState, Expression<Func<TState, bool>> condition, Expression<Func<TState, TState>> iterate, Expression<Func<TState, TResult>> resultSelector, Expression<Func<TState, TimeSpan>> timeSelector) - 4.
public static IQbservable<TResult> Generate<TState, TResult>(this IQbservableProvider provider, TState initialState, Expression<Func<TState, bool>> condition, Expression<Func<TState, TState>> iterate, Expression<Func<TState, TResult>> resultSelector, Expression<Func<TState, DateTimeOffset>> timeSelector) - 5.
public static IQbservable<TResult> Generate<TState, TResult>(this IQbservableProvider provider, TState initialState, Expression<Func<TState, bool>> condition, Expression<Func<TState, TState>> iterate, Expression<Func<TState, TResult>> resultSelector, Expression<Func<TState, TimeSpan>> timeSelector, IScheduler scheduler) - 6.
public static IQbservable<TResult> Generate<TState, TResult>(this IQbservableProvider provider, TState initialState, Expression<Func<TState, bool>> condition, Expression<Func<TState, TState>> iterate, Expression<Func<TState, TResult>> resultSelector, Expression<Func<TState, DateTimeOffset>> timeSelector, IScheduler scheduler)
1. Overload¶
public static IQbservable<TResult> Generate<TState, TResult>(this IQbservableProvider provider, TState initialState, Expression<Func<TState, bool>> condition, Expression<Func<TState, TState>> iterate, Expression<Func<TState, TResult>> resultSelector)
Summary: Generates an observable sequence by running a state-driven loop producing the sequence's elements.
Type parameters
| Name | Description |
|---|---|
TState | The type of the state used in the generator loop. |
TResult | The type of the elements in the produced sequence. |
Parameters
| Name | Type | Description |
|---|---|---|
provider | [IQbservableProvider](# | Query provider used to construct the [IQbservable](# data source. |
initialState | TState | Initial state. |
condition | Expression | Condition to terminate generation (upon returning false). |
iterate | Expression | Iteration step function. |
resultSelector | Expression | Selector function for results produced in the sequence. |
Returns: IQbservable
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | condition or iterate or resultSelector is null. |
2. Overload¶
public static IQbservable<TResult> Generate<TState, TResult>(this IQbservableProvider provider, TState initialState, Expression<Func<TState, bool>> condition, Expression<Func<TState, TState>> iterate, Expression<Func<TState, TResult>> resultSelector, IScheduler scheduler)
Summary: Generates an observable sequence by running a state-driven loop producing the sequence's elements, using the specified scheduler to send out observer messages.
Type parameters
| Name | Description |
|---|---|
TState | The type of the state used in the generator loop. |
TResult | The type of the elements in the produced sequence. |
Parameters
| Name | Type | Description |
|---|---|---|
provider | [IQbservableProvider](# | Query provider used to construct the [IQbservable](# data source. |
initialState | TState | Initial state. |
condition | Expression | Condition to terminate generation (upon returning false). |
iterate | Expression | Iteration step function. |
resultSelector | Expression | Selector function for results produced in the sequence. |
scheduler | [IScheduler](# | Scheduler on which to run the generator loop. |
Returns: IQbservable
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | condition or iterate or resultSelector or scheduler is null. |
3. Overload¶
public static IQbservable<TResult> Generate<TState, TResult>(this IQbservableProvider provider, TState initialState, Expression<Func<TState, bool>> condition, Expression<Func<TState, TState>> iterate, Expression<Func<TState, TResult>> resultSelector, Expression<Func<TState, TimeSpan>> timeSelector)
Summary: Generates an observable sequence by running a state-driven and temporal loop producing the sequence's elements.
Type parameters
| Name | Description |
|---|---|
TState | The type of the state used in the generator loop. |
TResult | The type of the elements in the produced sequence. |
Parameters
| Name | Type | Description |
|---|---|---|
provider | [IQbservableProvider](# | Query provider used to construct the [IQbservable](# data source. |
initialState | TState | Initial state. |
condition | Expression | Condition to terminate generation (upon returning false). |
iterate | Expression | Iteration step function. |
resultSelector | Expression | Selector function for results produced in the sequence. |
timeSelector | Expression | Time selector function to control the speed of values being produced each iteration. |
Returns: IQbservable
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | condition or iterate or resultSelector or timeSelector is null. |
4. Overload¶
public static IQbservable<TResult> Generate<TState, TResult>(this IQbservableProvider provider, TState initialState, Expression<Func<TState, bool>> condition, Expression<Func<TState, TState>> iterate, Expression<Func<TState, TResult>> resultSelector, Expression<Func<TState, DateTimeOffset>> timeSelector)
Summary: Generates an observable sequence by running a state-driven and temporal loop producing the sequence's elements.
Type parameters
| Name | Description |
|---|---|
TState | The type of the state used in the generator loop. |
TResult | The type of the elements in the produced sequence. |
Parameters
| Name | Type | Description |
|---|---|---|
provider | [IQbservableProvider](# | Query provider used to construct the [IQbservable](# data source. |
initialState | TState | Initial state. |
condition | Expression | Condition to terminate generation (upon returning false). |
iterate | Expression | Iteration step function. |
resultSelector | Expression | Selector function for results produced in the sequence. |
timeSelector | Expression | Time selector function to control the speed of values being produced each iteration. |
Returns: IQbservable
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | condition or iterate or resultSelector or timeSelector is null. |
5. Overload¶
public static IQbservable<TResult> Generate<TState, TResult>(this IQbservableProvider provider, TState initialState, Expression<Func<TState, bool>> condition, Expression<Func<TState, TState>> iterate, Expression<Func<TState, TResult>> resultSelector, Expression<Func<TState, TimeSpan>> timeSelector, IScheduler scheduler)
Summary: Generates an observable sequence by running a state-driven and temporal loop producing the sequence's elements, using the specified scheduler to run timers and to send out observer messages.
Type parameters
| Name | Description |
|---|---|
TState | The type of the state used in the generator loop. |
TResult | The type of the elements in the produced sequence. |
Parameters
| Name | Type | Description |
|---|---|---|
provider | [IQbservableProvider](# | Query provider used to construct the [IQbservable](# data source. |
initialState | TState | Initial state. |
condition | Expression | Condition to terminate generation (upon returning false). |
iterate | Expression | Iteration step function. |
resultSelector | Expression | Selector function for results produced in the sequence. |
timeSelector | Expression | Time selector function to control the speed of values being produced each iteration. |
scheduler | [IScheduler](# | Scheduler on which to run the generator loop. |
Returns: IQbservable
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | condition or iterate or resultSelector or timeSelector or scheduler is null. |
6. Overload¶
public static IQbservable<TResult> Generate<TState, TResult>(this IQbservableProvider provider, TState initialState, Expression<Func<TState, bool>> condition, Expression<Func<TState, TState>> iterate, Expression<Func<TState, TResult>> resultSelector, Expression<Func<TState, DateTimeOffset>> timeSelector, IScheduler scheduler)
Summary: Generates an observable sequence by running a state-driven and temporal loop producing the sequence's elements, using the specified scheduler to run timers and to send out observer messages.
Type parameters
| Name | Description |
|---|---|
TState | The type of the state used in the generator loop. |
TResult | The type of the elements in the produced sequence. |
Parameters
| Name | Type | Description |
|---|---|---|
provider | [IQbservableProvider](# | Query provider used to construct the [IQbservable](# data source. |
initialState | TState | Initial state. |
condition | Expression | Condition to terminate generation (upon returning false). |
iterate | Expression | Iteration step function. |
resultSelector | Expression | Selector function for results produced in the sequence. |
timeSelector | Expression | Time selector function to control the speed of values being produced each iteration. |
scheduler | [IScheduler](# | Scheduler on which to run the generator loop. |
Returns: IQbservable
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | condition or iterate or resultSelector or timeSelector or scheduler is null. |