Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Represents the base class for virtual time schedulers.
Inheritance Hierarchy
System.Object
System.Reactive.Concurrency.VirtualTimeSchedulerBase<TAbsolute, TRelative>
System.Reactive.Concurrency.HistoricalSchedulerBase
System.Reactive.Concurrency.VirtualTimeScheduler<TAbsolute, TRelative>
Namespace: System.Reactive.Concurrency
Assembly: System.Reactive (in System.Reactive.dll)
Syntax
'Declaration
Public MustInherit Class VirtualTimeSchedulerBase(Of TAbsolute, TRelative) _
Implements IScheduler
'Usage
Dim instance As VirtualTimeSchedulerBase(Of TAbsolute, TRelative)
public abstract class VirtualTimeSchedulerBase<TAbsolute, TRelative> : IScheduler
generic<typename TAbsolute, typename TRelative>
public ref class VirtualTimeSchedulerBase abstract : IScheduler
[<AbstractClassAttribute>]
type VirtualTimeSchedulerBase<'TAbsolute, 'TRelative> =
class
interface IScheduler
end
JScript does not support generic types and methods.
Type Parameters
- TAbsolute
The absolute time argument type.
- TRelative
The relative time argument type.
The VirtualTimeSchedulerBase<TAbsolute, TRelative> type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() |
VirtualTimeSchedulerBase<TAbsolute, TRelative>() | Creates a new virtual time scheduler with the default value of TAbsolute for the initial clock value. |
![]() |
VirtualTimeSchedulerBase<TAbsolute, TRelative>(TAbsolute, IComparer<TAbsolute>) | Creates a new virtual time scheduler. |
Top
Properties
Name | Description | |
---|---|---|
![]() |
Clock | Gets the scheduler's absolute time clock value. |
![]() |
Comparer | Gets the comparer used to compare absolute time values. |
![]() |
IsEnabled | Gets whether the scheduler is enabled to run work. |
![]() |
Now | Gets the scheduler's notion of current time. |
Top
Methods
Name | Description | |
---|---|---|
![]() |
Add | Adds a relative time to an absolute time value. |
![]() |
AdvanceBy | Advances the scheduler's clock by the specified relative time, running all work scheduled for that timespan. |
![]() |
AdvanceTo | Advances the scheduler's clock to the specified time, running all work till that point. |
![]() |
Equals | (Inherited from Object.) |
![]() |
Finalize | (Inherited from Object.) |
![]() |
GetHashCode | (Inherited from Object.) |
![]() |
GetNext | Gets the next scheduled item to be executed. |
![]() |
GetType | (Inherited from Object.) |
![]() |
MemberwiseClone | (Inherited from Object.) |
![]() |
Schedule<TState>(TState, Func<IScheduler, TState, IDisposable>) | Schedules an action to be executed. |
![]() |
Schedule<TState>(TState, DateTimeOffset, Func<IScheduler, TState, IDisposable>) | Schedules an action to be executed at dueTime. |
![]() |
Schedule<TState>(TState, TimeSpan, Func<IScheduler, TState, IDisposable>) | Schedules an action to be executed after dueTime. |
![]() |
ScheduleAbsolute<TState> | Schedules an action to be executed at dueTime. |
![]() |
ScheduleRelative<TState> | Schedules an action to be executed at dueTime. |
![]() |
Start | Starts the virtual time scheduler. |
![]() |
Stop | Stops the virtual time scheduler. |
![]() |
ToDateTimeOffset | Converts the absolute time value to a DateTimeOffset value. |
![]() |
ToRelative | Converts the TimeSpan value to a relative time value. |
![]() |
ToString | (Inherited from Object.) |
Top
Extension Methods
Name | Description | |
---|---|---|
![]() |
Schedule(Action) | Overloaded. Schedules an action to be executed. (Defined by Scheduler.) |
![]() |
Schedule(Action<Action>) | Overloaded. Schedules an action to be executed recursively. (Defined by Scheduler.) |
![]() |
Schedule(TimeSpan, Action) | Overloaded. Schedules an action to be executed after dueTime. (Defined by Scheduler.) |
![]() |
Schedule(DateTimeOffset, Action) | Overloaded. Schedules an action to be executed at dueTime. (Defined by Scheduler.) |
![]() |
Schedule(TimeSpan, Action<Action<TimeSpan>>) | Overloaded. Schedules an action to be executed recursively after each dueTime. (Defined by Scheduler.) |
![]() |
Schedule(DateTimeOffset, Action<Action<DateTimeOffset>>) | Overloaded. Schedules an action to be executed after dueTime. (Defined by Scheduler.) |
![]() |
Schedule<TState>(TState, Action<TState, Action<TState>>) | Overloaded. Schedules an action to be executed recursively. (Defined by Scheduler.) |
![]() |
Schedule<TState>(TState, TimeSpan, Action<TState, Action<TState, TimeSpan>>) | Overloaded. Schedules an action to be executed recursively after each dueTime. (Defined by Scheduler.) |
![]() |
Schedule<TState>(TState, DateTimeOffset, Action<TState, Action<TState, DateTimeOffset>>) | Overloaded. Schedules an action to be executed recursively at each dueTime. (Defined by Scheduler.) |
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.