Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Qbservable.Generate<TState, TResult> Method (IQbservableProvider, TState, Expression<Func<TState, Boolean>>, Expression<Func<TState, TState>>, Expression<Func<TState, TResult>>, Expression<Func<TState, DateTimeOffset>>, IScheduler)

Generates a queryable observable sequence by iterating a state from an initial state until the condition fails.

Namespace:  System.Reactive.Linq
Assembly:  System.Reactive.Providers (in System.Reactive.Providers.dll)
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

Type Parameters


The type of state.


The type of result.


Type: System.Reactive.Linq.IQbservableProvider
The local Qbservable provider.
Type: TState
The initial state.
Type: System.Linq.Expressions.Expression<Func<TState, Boolean>>
The condition to terminate generation.
Type: System.Linq.Expressions.Expression<Func<TState, TState>>
The iteration step function.
Type: System.Linq.Expressions.Expression<Func<TState, TResult>>
The selector function for results produced in the sequence.
Type: System.Linq.Expressions.Expression<Func<TState, DateTimeOffset>>
The time selector function to control the speed of values being produced each iteration.
Type: System.Reactive.Concurrency.IScheduler
The scheduler on which to run the generator loop.

Return Value

Type: System.Reactive.Linq.IQbservable<TResult>
The generated sequence.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IQbservableProvider. When you use instance method syntax to call this method, omit the first parameter. For more information, see http://msdn.microsoft.com/en-us/library/bb384936(v=vs.103).aspx or http://msdn.microsoft.com/en-us/library/bb383977(v=vs.103).aspx.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.