,System.Func{--0,--0},System.Func{--0,--1})} ,System.Func{--0,--0},System.Func{--0,--1},System.Reactive.Concurrency.IScheduler)} ,System.Func{--0,--0},System.Func{--0,--1},System.Func{--0,System.TimeSpan})} ,System.Func{--0,--0},System.Func{--0,--1},System.Func{--0,System.TimeSpan},System.Reactive.Concurrency.IScheduler)} ,System.Func{--0,--0},System.Func{--0,--1},System.Func{--0,System.DateTimeOffset})} ,System.Func{--0,--0},System.Func{--0,--1},System.Func{--0,System.DateTimeOffset},System.Reactive.Concurrency.IScheduler)}
Observable.Generate(TState, Func, Func, Func) method¶
Defined in
Type: Observable
Namespace: System.Reactive.Linq
Assembly: System.Reactive.dll
Applies to
net8.0, net8.0-windows10.0.19041, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.0
Overloads¶
- 1.
public static IObservable<TResult> Generate<TState, TResult>(TState initialState, Func<TState, bool> condition, Func<TState, TState> iterate, Func<TState, TResult> resultSelector) - 2.
public static IObservable<TResult> Generate<TState, TResult>(TState initialState, Func<TState, bool> condition, Func<TState, TState> iterate, Func<TState, TResult> resultSelector, IScheduler scheduler) - 3.
public static IObservable<TResult> Generate<TState, TResult>(TState initialState, Func<TState, bool> condition, Func<TState, TState> iterate, Func<TState, TResult> resultSelector, Func<TState, TimeSpan> timeSelector) - 4.
public static IObservable<TResult> Generate<TState, TResult>(TState initialState, Func<TState, bool> condition, Func<TState, TState> iterate, Func<TState, TResult> resultSelector, Func<TState, TimeSpan> timeSelector, IScheduler scheduler) - 5.
public static IObservable<TResult> Generate<TState, TResult>(TState initialState, Func<TState, bool> condition, Func<TState, TState> iterate, Func<TState, TResult> resultSelector, Func<TState, DateTimeOffset> timeSelector) - 6.
public static IObservable<TResult> Generate<TState, TResult>(TState initialState, Func<TState, bool> condition, Func<TState, TState> iterate, Func<TState, TResult> resultSelector, Func<TState, DateTimeOffset> timeSelector, IScheduler scheduler)
1. Overload¶
public static IObservable<TResult> Generate<TState, TResult>(TState initialState, Func<TState, bool> condition, Func<TState, TState> iterate, Func<TState, TResult> resultSelector)
Type parameters
| Name | Description |
|---|---|
TState | -- |
TResult | -- |
Parameters
| Name | Type | Description |
|---|---|---|
initialState | TState | -- |
condition | Func | -- |
iterate | Func | -- |
resultSelector | Func | -- |
Returns: IObservable
2. Overload¶
public static IObservable<TResult> Generate<TState, TResult>(TState initialState, Func<TState, bool> condition, Func<TState, TState> iterate, Func<TState, TResult> resultSelector, IScheduler scheduler)
Type parameters
| Name | Description |
|---|---|
TState | -- |
TResult | -- |
Parameters
| Name | Type | Description |
|---|---|---|
initialState | TState | -- |
condition | Func | -- |
iterate | Func | -- |
resultSelector | Func | -- |
scheduler | [IScheduler](# | -- |
Returns: IObservable
3. Overload¶
public static IObservable<TResult> Generate<TState, TResult>(TState initialState, Func<TState, bool> condition, Func<TState, TState> iterate, Func<TState, TResult> resultSelector, Func<TState, TimeSpan> timeSelector)
Type parameters
| Name | Description |
|---|---|
TState | -- |
TResult | -- |
Parameters
| Name | Type | Description |
|---|---|---|
initialState | TState | -- |
condition | Func | -- |
iterate | Func | -- |
resultSelector | Func | -- |
timeSelector | Func | -- |
Returns: IObservable
4. Overload¶
public static IObservable<TResult> Generate<TState, TResult>(TState initialState, Func<TState, bool> condition, Func<TState, TState> iterate, Func<TState, TResult> resultSelector, Func<TState, TimeSpan> timeSelector, IScheduler scheduler)
Type parameters
| Name | Description |
|---|---|
TState | -- |
TResult | -- |
Parameters
| Name | Type | Description |
|---|---|---|
initialState | TState | -- |
condition | Func | -- |
iterate | Func | -- |
resultSelector | Func | -- |
timeSelector | Func | -- |
scheduler | [IScheduler](# | -- |
Returns: IObservable
5. Overload¶
public static IObservable<TResult> Generate<TState, TResult>(TState initialState, Func<TState, bool> condition, Func<TState, TState> iterate, Func<TState, TResult> resultSelector, Func<TState, DateTimeOffset> timeSelector)
Type parameters
| Name | Description |
|---|---|
TState | -- |
TResult | -- |
Parameters
| Name | Type | Description |
|---|---|---|
initialState | TState | -- |
condition | Func | -- |
iterate | Func | -- |
resultSelector | Func | -- |
timeSelector | Func | -- |
Returns: IObservable
6. Overload¶
public static IObservable<TResult> Generate<TState, TResult>(TState initialState, Func<TState, bool> condition, Func<TState, TState> iterate, Func<TState, TResult> resultSelector, Func<TState, DateTimeOffset> timeSelector, IScheduler scheduler)
Type parameters
| Name | Description |
|---|---|
TState | -- |
TResult | -- |
Parameters
| Name | Type | Description |
|---|---|---|
initialState | TState | -- |
condition | Func | -- |
iterate | Func | -- |
resultSelector | Func | -- |
timeSelector | Func | -- |
scheduler | [IScheduler](# | -- |
Returns: IObservable