Export (0) Print
Expand All

VirtualTimeScheduler<TAbsolute, TRelative> Class

Represents the base class for virtual time schedulers using a priority queue for scheduled items.

System.Object
  System.Reactive.Concurrency.VirtualTimeSchedulerBase<TAbsolute, TRelative>
    System.Reactive.Concurrency.VirtualTimeScheduler<TAbsolute, TRelative>
      Microsoft.Reactive.Testing.TestScheduler

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

public abstract class VirtualTimeScheduler<TAbsolute, TRelative> : VirtualTimeSchedulerBase<TAbsolute, TRelative>

Type Parameters

TAbsolute

The absolute time argument type.

TRelative

The relative time argument type.

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

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

  NameDescription
Public propertyClock Gets the scheduler's absolute time clock value. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>.)
Protected propertyComparer Gets the comparer used to compare absolute time values. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>.)
Public propertyIsEnabled Gets whether the scheduler is enabled to run work. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>.)
Public propertyNow Gets the scheduler's notion of current time. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>.)
Top

  NameDescription
Protected methodAdd Adds a relative time to an absolute time value. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>.)
Public methodAdvanceBy Advances the scheduler's clock by the specified relative time, running all work scheduled for that timespan. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>.)
Public methodAdvanceTo Advances the scheduler's clock to the specified time, running all work till that point. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>.)
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. (Overrides VirtualTimeSchedulerBase<TAbsolute, TRelative>.GetNext().)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodSchedule<TState>(TState, Func<IScheduler, TState, IDisposable>) Schedules an action to be executed. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>.)
Public methodSchedule<TState>(TState, DateTimeOffset, Func<IScheduler, TState, IDisposable>)Schedules an action to be executed at dueTime. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>.)
Public methodSchedule<TState>(TState, TimeSpan, Func<IScheduler, TState, IDisposable>)Schedules an action to be executed after dueTime. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>.)
Public methodScheduleAbsolute<TState>(TState, TAbsolute, Func<IScheduler, TState, IDisposable>)Schedules an action to be executed at dueTime. (Overrides VirtualTimeSchedulerBase<TAbsolute, TRelative>.ScheduleAbsolute<TState>(TState, TAbsolute, Func<IScheduler, TState, IDisposable>).)
Public methodScheduleAbsolute<TState>(TState, TAbsolute, Func<IScheduler, TState, IDisposable>)Schedules an action to be executed at dueTime. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>.)
Public methodScheduleRelative<TState>Schedules an action to be executed at dueTime. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>.)
Public methodStart Starts the virtual time scheduler. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>.)
Public methodStop Stops the virtual time scheduler. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>.)
Protected methodToDateTimeOffset Converts the absolute time value to a DateTimeOffset value. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>.)
Protected methodToRelative Converts the TimeSpan value to a relative time value. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>.)
Public methodToString (Inherited from Object.)
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:
© 2014 Microsoft