Qbservable.Timer(IQbservableProvider, DateTimeOffset) method¶
Defined in
Type: Qbservable
Namespace: System.Reactive.Linq
Assembly: System.Reactive.dll
Applies to
netstandard2.0
Overloads¶
- 1.
public static IQbservable<long> Timer(this IQbservableProvider provider, DateTimeOffset dueTime) - 2.
public static IQbservable<long> Timer(this IQbservableProvider provider, DateTimeOffset dueTime, TimeSpan period) - 3.
public static IQbservable<long> Timer(this IQbservableProvider provider, DateTimeOffset dueTime, TimeSpan period, IScheduler scheduler) - 4.
public static IQbservable<long> Timer(this IQbservableProvider provider, DateTimeOffset dueTime, IScheduler scheduler) - 5.
public static IQbservable<long> Timer(this IQbservableProvider provider, TimeSpan dueTime) - 6.
public static IQbservable<long> Timer(this IQbservableProvider provider, TimeSpan dueTime, TimeSpan period) - 7.
public static IQbservable<long> Timer(this IQbservableProvider provider, TimeSpan dueTime, TimeSpan period, IScheduler scheduler) - 8.
public static IQbservable<long> Timer(this IQbservableProvider provider, TimeSpan dueTime, IScheduler scheduler)
1. Overload¶
public static IQbservable<long> Timer(this IQbservableProvider provider, DateTimeOffset dueTime)
Summary: Returns an observable sequence that produces a single value at the specified absolute due time.
Parameters
| Name | Type | Description |
|---|---|---|
provider | [IQbservableProvider](# | Query provider used to construct the [IQbservable](# data source. |
dueTime | DateTimeOffset | Absolute time at which to produce the value. If this value is less than or equal to DateTimeOffset.UtcNow, the timer will fire as soon as possible. |
Returns: IQbservable
2. Overload¶
public static IQbservable<long> Timer(this IQbservableProvider provider, DateTimeOffset dueTime, TimeSpan period)
Summary: Returns an observable sequence that periodically produces a value starting at the specified initial absolute due time.
Parameters
| Name | Type | Description |
|---|---|---|
provider | [IQbservableProvider](# | Query provider used to construct the [IQbservable](# data source. |
dueTime | DateTimeOffset | Absolute time at which to produce the first value. If this value is less than or equal to DateTimeOffset.UtcNow, the timer will fire as soon as possible. |
period | TimeSpan | Period to produce subsequent values. If this value is equal to TimeSpan.Zero, the timer will recur as fast as possible. |
Returns: IQbservable
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentOutOfRangeException | period is less than TimeSpan.Zero. |
3. Overload¶
public static IQbservable<long> Timer(this IQbservableProvider provider, DateTimeOffset dueTime, TimeSpan period, IScheduler scheduler)
Summary: Returns an observable sequence that periodically produces a value starting at the specified initial absolute due time, using the specified scheduler to run timers.
Parameters
| Name | Type | Description |
|---|---|---|
provider | [IQbservableProvider](# | Query provider used to construct the [IQbservable](# data source. |
dueTime | DateTimeOffset | Absolute time at which to produce the first value. If this value is less than or equal to DateTimeOffset.UtcNow, the timer will fire as soon as possible. |
period | TimeSpan | Period to produce subsequent values. If this value is equal to TimeSpan.Zero, the timer will recur as fast as possible. |
scheduler | [IScheduler](# | Scheduler to run timers on. |
Returns: IQbservable
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentOutOfRangeException | period is less than TimeSpan.Zero. |
| System.ArgumentNullException | scheduler is null. |
4. Overload¶
public static IQbservable<long> Timer(this IQbservableProvider provider, DateTimeOffset dueTime, IScheduler scheduler)
Summary: Returns an observable sequence that produces a single value at the specified absolute due time, using the specified scheduler to run the timer.
Parameters
| Name | Type | Description |
|---|---|---|
provider | [IQbservableProvider](# | Query provider used to construct the [IQbservable](# data source. |
dueTime | DateTimeOffset | Absolute time at which to produce the value. If this value is less than or equal to DateTimeOffset.UtcNow, the timer will fire as soon as possible. |
scheduler | [IScheduler](# | Scheduler to run the timer on. |
Returns: IQbservable
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | scheduler is null. |
5. Overload¶
public static IQbservable<long> Timer(this IQbservableProvider provider, TimeSpan dueTime)
Summary: Returns an observable sequence that produces a single value after the specified relative due time has elapsed.
Parameters
| Name | Type | Description |
|---|---|---|
provider | [IQbservableProvider](# | Query provider used to construct the [IQbservable](# data source. |
dueTime | TimeSpan | Relative time at which to produce the value. If this value is less than or equal to TimeSpan.Zero, the timer will fire as soon as possible. |
Returns: IQbservable
6. Overload¶
public static IQbservable<long> Timer(this IQbservableProvider provider, TimeSpan dueTime, TimeSpan period)
Summary: Returns an observable sequence that periodically produces a value after the specified initial relative due time has elapsed.
Parameters
| Name | Type | Description |
|---|---|---|
provider | [IQbservableProvider](# | Query provider used to construct the [IQbservable](# data source. |
dueTime | TimeSpan | Relative time at which to produce the first value. If this value is less than or equal to TimeSpan.Zero, the timer will fire as soon as possible. |
period | TimeSpan | Period to produce subsequent values. If this value is equal to TimeSpan.Zero, the timer will recur as fast as possible. |
Returns: IQbservable
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentOutOfRangeException | period is less than TimeSpan.Zero. |
7. Overload¶
public static IQbservable<long> Timer(this IQbservableProvider provider, TimeSpan dueTime, TimeSpan period, IScheduler scheduler)
Summary: Returns an observable sequence that periodically produces a value after the specified initial relative due time has elapsed, using the specified scheduler to run timers.
Parameters
| Name | Type | Description |
|---|---|---|
provider | [IQbservableProvider](# | Query provider used to construct the [IQbservable](# data source. |
dueTime | TimeSpan | Relative time at which to produce the first value. If this value is less than or equal to TimeSpan.Zero, the timer will fire as soon as possible. |
period | TimeSpan | Period to produce subsequent values. If this value is equal to TimeSpan.Zero, the timer will recur as fast as possible. |
scheduler | [IScheduler](# | Scheduler to run timers on. |
Returns: IQbservable
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentOutOfRangeException | period is less than TimeSpan.Zero. |
| System.ArgumentNullException | scheduler is null. |
8. Overload¶
public static IQbservable<long> Timer(this IQbservableProvider provider, TimeSpan dueTime, IScheduler scheduler)
Summary: Returns an observable sequence that produces a single value after the specified relative due time has elapsed, using the specified scheduler to run the timer.
Parameters
| Name | Type | Description |
|---|---|---|
provider | [IQbservableProvider](# | Query provider used to construct the [IQbservable](# data source. |
dueTime | TimeSpan | Relative time at which to produce the value. If this value is less than or equal to TimeSpan.Zero, the timer will fire as soon as possible. |
scheduler | [IScheduler](# | Scheduler to run the timer on. |
Returns: IQbservable
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | scheduler is null. |