VirtualTimeSchedulerBase<TAbsolute, TRelative> Class

Represents the base class for virtual time schedulers.

Namespace:  System.Reactive.Concurrency
Assembly:  System.Reactive (in System.Reactive.dll)

public abstract class VirtualTimeSchedulerBase<TAbsolute, TRelative> : IScheduler

Type Parameters

TAbsolute

The absolute time argument type.

TRelative

The relative time argument type.

The VirtualTimeSchedulerBase<TAbsolute, TRelative> type exposes the following members.

  NameDescription
Protected methodVirtualTimeSchedulerBase<TAbsolute, TRelative>() Creates a new virtual time scheduler with the default value of TAbsolute for the initial clock value.
Protected methodVirtualTimeSchedulerBase<TAbsolute, TRelative>(TAbsolute, IComparer<TAbsolute>) Creates a new virtual time scheduler.
Top

  NameDescription
Public propertyClock Gets the scheduler's absolute time clock value.
Protected propertyComparer Gets the comparer used to compare absolute time values.
Public propertyIsEnabled Gets whether the scheduler is enabled to run work.
Public propertyNow Gets the scheduler's notion of current time.
Top

  NameDescription
Protected methodAdd Adds a relative time to an absolute time value.
Public methodAdvanceBy Advances the scheduler's clock by the specified relative time, running all work scheduled for that timespan.
Public methodAdvanceTo Advances the scheduler's clock to the specified time, running all work till that point.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Protected methodGetNext Gets the next scheduled item to be executed.
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodSchedule<TState>(TState, Func<IScheduler, TState, IDisposable>) Schedules an action to be executed.
Public methodSchedule<TState>(TState, DateTimeOffset, Func<IScheduler, TState, IDisposable>)Schedules an action to be executed at dueTime.
Public methodSchedule<TState>(TState, TimeSpan, Func<IScheduler, TState, IDisposable>)Schedules an action to be executed after dueTime.
Public methodScheduleAbsolute<TState>Schedules an action to be executed at dueTime.
Public methodScheduleRelative<TState>Schedules an action to be executed at dueTime.
Public methodStart Starts the virtual time scheduler.
Public methodStop Stops the virtual time scheduler.
Protected methodToDateTimeOffset Converts the absolute time value to a DateTimeOffset value.
Protected methodToRelative Converts the TimeSpan value to a relative time value.
Public methodToString (Inherited from Object.)
Top

  NameDescription
Public Extension MethodSchedule(Action)Overloaded. Schedules an action to be executed. (Defined by Scheduler.)
Public Extension MethodSchedule(Action<Action>)Overloaded. Schedules an action to be executed recursively. (Defined by Scheduler.)
Public Extension MethodSchedule(TimeSpan, Action)Overloaded. Schedules an action to be executed after dueTime. (Defined by Scheduler.)
Public Extension MethodSchedule(DateTimeOffset, Action)Overloaded. Schedules an action to be executed at dueTime. (Defined by Scheduler.)
Public Extension MethodSchedule(TimeSpan, Action<Action<TimeSpan>>)Overloaded. Schedules an action to be executed recursively after each dueTime. (Defined by Scheduler.)
Public Extension MethodSchedule(DateTimeOffset, Action<Action<DateTimeOffset>>)Overloaded. Schedules an action to be executed after dueTime. (Defined by Scheduler.)
Public Extension MethodSchedule<TState>(TState, Action<TState, Action<TState>>)Overloaded. Schedules an action to be executed recursively. (Defined by Scheduler.)
Public Extension MethodSchedule<TState>(TState, TimeSpan, Action<TState, Action<TState, TimeSpan>>)Overloaded. Schedules an action to be executed recursively after each dueTime. (Defined by Scheduler.)
Public Extension MethodSchedule<TState>(TState, DateTimeOffset, Action<TState, Action<TState, DateTimeOffset>>)Overloaded. Schedules an action to be executed recursively at each dueTime. (Defined by Scheduler.)
Top

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show: