Skip to content

},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

NameDescription
TStateThe type of the state used in the generator loop.
TResultThe type of the elements in the produced sequence.

Parameters

NameTypeDescription
provider[IQbservableProvider](#Query provider used to construct the [IQbservable](# data source.
initialStateTStateInitial state.
conditionExpression>Condition to terminate generation (upon returning false).
iterateExpression>Iteration step function.
resultSelectorExpression>Selector function for results produced in the sequence.

Returns: IQbservable -- The generated sequence.

Exceptions

TypeCondition
System.ArgumentNullExceptioncondition 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

NameDescription
TStateThe type of the state used in the generator loop.
TResultThe type of the elements in the produced sequence.

Parameters

NameTypeDescription
provider[IQbservableProvider](#Query provider used to construct the [IQbservable](# data source.
initialStateTStateInitial state.
conditionExpression>Condition to terminate generation (upon returning false).
iterateExpression>Iteration step function.
resultSelectorExpression>Selector function for results produced in the sequence.
scheduler[IScheduler](#Scheduler on which to run the generator loop.

Returns: IQbservable -- The generated sequence.

Exceptions

TypeCondition
System.ArgumentNullExceptioncondition 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

NameDescription
TStateThe type of the state used in the generator loop.
TResultThe type of the elements in the produced sequence.

Parameters

NameTypeDescription
provider[IQbservableProvider](#Query provider used to construct the [IQbservable](# data source.
initialStateTStateInitial state.
conditionExpression>Condition to terminate generation (upon returning false).
iterateExpression>Iteration step function.
resultSelectorExpression>Selector function for results produced in the sequence.
timeSelectorExpression>Time selector function to control the speed of values being produced each iteration.

Returns: IQbservable -- The generated sequence.

Exceptions

TypeCondition
System.ArgumentNullExceptioncondition 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

NameDescription
TStateThe type of the state used in the generator loop.
TResultThe type of the elements in the produced sequence.

Parameters

NameTypeDescription
provider[IQbservableProvider](#Query provider used to construct the [IQbservable](# data source.
initialStateTStateInitial state.
conditionExpression>Condition to terminate generation (upon returning false).
iterateExpression>Iteration step function.
resultSelectorExpression>Selector function for results produced in the sequence.
timeSelectorExpression>Time selector function to control the speed of values being produced each iteration.

Returns: IQbservable -- The generated sequence.

Exceptions

TypeCondition
System.ArgumentNullExceptioncondition 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

NameDescription
TStateThe type of the state used in the generator loop.
TResultThe type of the elements in the produced sequence.

Parameters

NameTypeDescription
provider[IQbservableProvider](#Query provider used to construct the [IQbservable](# data source.
initialStateTStateInitial state.
conditionExpression>Condition to terminate generation (upon returning false).
iterateExpression>Iteration step function.
resultSelectorExpression>Selector function for results produced in the sequence.
timeSelectorExpression>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 -- The generated sequence.

Exceptions

TypeCondition
System.ArgumentNullExceptioncondition 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

NameDescription
TStateThe type of the state used in the generator loop.
TResultThe type of the elements in the produced sequence.

Parameters

NameTypeDescription
provider[IQbservableProvider](#Query provider used to construct the [IQbservable](# data source.
initialStateTStateInitial state.
conditionExpression>Condition to terminate generation (upon returning false).
iterateExpression>Iteration step function.
resultSelectorExpression>Selector function for results produced in the sequence.
timeSelectorExpression>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 -- The generated sequence.

Exceptions

TypeCondition
System.ArgumentNullExceptioncondition or iterate or resultSelector or timeSelector or scheduler is null.