VirtualTimeScheduler<TAbsolute, TRelative> Methods
Include Protected Members
Include Inherited Members
The [VirtualTimeScheduler<TAbsolute, TRelative>](VirtualTimeScheduler/VirtualTimeScheduler(TAbsolute,) type exposes the following members.
Methods
NameDescriptionAddAdds a relative time to an absolute time value. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>
AdvanceByAdvances the scheduler's clock by the specified relative time, running all work scheduled for that timespan. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>
AdvanceToAdvances the scheduler's clock to the specified time, running all work till that point. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>
Equals(Inherited from Object.)
Finalize(Inherited from Object.)
GetHashCode(Inherited from Object.)
[GetNext](GetNext/VirtualTimeScheduler(TAbsolute,)Gets the next scheduled item to be executed. (Overrides VirtualTimeSchedulerBase<TAbsolute, TRelative>.GetNext()
GetType(Inherited from Object.)
MemberwiseClone(Inherited from Object.)
Schedule
Schedule
Schedule
ScheduleAbsolute
ScheduleAbsolute
ScheduleRelative
[Start](Start/VirtualTimeSchedulerBase(TAbsolute,)Starts the virtual time scheduler. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>
[Stop](Stop/VirtualTimeSchedulerBase(TAbsolute,)Stops the virtual time scheduler. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>
ToDateTimeOffsetConverts the absolute time value to a DateTimeOffset value. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>
ToRelativeConverts the TimeSpan value to a relative time value. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>
ToString(Inherited from Object.)Top
See Also
Reference
[VirtualTimeScheduler<TAbsolute, TRelative> Class](VirtualTimeScheduler/VirtualTimeScheduler(TAbsolute,)
System.Reactive.Concurrency Namespace
VirtualTimeScheduler<TAbsolute, TRelative> Properties
Include Protected Members
Include Inherited Members
The [VirtualTimeScheduler<TAbsolute, TRelative>](VirtualTimeScheduler/VirtualTimeScheduler(TAbsolute,) type exposes the following members.
Properties
NameDescription[Clock](Clock/VirtualTimeSchedulerBase(TAbsolute,)Gets the scheduler's absolute time clock value. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>
[Comparer](Comparer/VirtualTimeSchedulerBase(TAbsolute,)Gets the comparer used to compare absolute time values. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>
[IsEnabled](IsEnabled/VirtualTimeSchedulerBase(TAbsolute,)Gets whether the scheduler is enabled to run work. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>
[Now](Now/VirtualTimeSchedulerBase(TAbsolute,)Gets the scheduler's notion of current time. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>Top
See Also
Reference
[VirtualTimeScheduler<TAbsolute, TRelative> Class](VirtualTimeScheduler/VirtualTimeScheduler(TAbsolute,)
System.Reactive.Concurrency Namespace
VirtualTimeScheduler<TAbsolute, TRelative> Constructor
Include Protected Members
Include Inherited Members
Initializes a new instance of the [VirtualTimeScheduler<TAbsolute, TRelative>](VirtualTimeScheduler/VirtualTimeScheduler(TAbsolute,) class.
This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.
Overload List
NameDescription[VirtualTimeScheduler<TAbsolute, TRelative>()](VirtualTimeScheduler/VirtualTimeScheduler(TAbsolute,)Creates a new virtual time scheduler with the default value of TAbsolute for the initial clock value.
VirtualTimeScheduler<TAbsolute, TRelative>(TAbsolute, IComparer
See Also
Reference
[VirtualTimeScheduler<TAbsolute, TRelative> Class](VirtualTimeScheduler/VirtualTimeScheduler(TAbsolute,)
System.Reactive.Concurrency Namespace
VirtualTimeScheduler<TAbsolute, TRelative> Class
Represents the base class for virtual time schedulers using a priority queue for scheduled items.
Inheritance Hierarchy
System.Object
[System.Reactive.Concurrency.VirtualTimeSchedulerBase](VirtualTimeSchedulerBase/VirtualTimeSchedulerBase(TAbsolute,)<TAbsolute, TRelative>
System.Reactive.Concurrency.VirtualTimeScheduler<TAbsolute, TRelative>
Microsoft.Reactive.Testing.TestScheduler
Namespace: System.Reactive.Concurrency
Assembly: System.Reactive (in System.Reactive.dll)
Syntax
'Declaration
Public MustInherit Class VirtualTimeScheduler(Of TAbsolute, TRelative) _
Inherits VirtualTimeSchedulerBase(Of TAbsolute, TRelative)
'Usage
Dim instance As VirtualTimeScheduler(Of TAbsolute, TRelative)
public abstract class VirtualTimeScheduler<TAbsolute, TRelative> : VirtualTimeSchedulerBase<TAbsolute, TRelative>
generic<typename TAbsolute, typename TRelative>
public ref class VirtualTimeScheduler abstract : public VirtualTimeSchedulerBase<TAbsolute, TRelative>
[<AbstractClassAttribute>]
type VirtualTimeScheduler<'TAbsolute, 'TRelative> =
class
inherit VirtualTimeSchedulerBase<'TAbsolute, 'TRelative>
end
JScript does not support generic types and methods.
Type Parameters
TAbsolute
The absolute time argument type.TRelative
The relative time argument type.
The VirtualTimeScheduler<TAbsolute, TRelative> type exposes the following members.
Constructors
NameDescription[VirtualTimeScheduler<TAbsolute, TRelative>()](VirtualTimeScheduler/VirtualTimeScheduler(TAbsolute,)Creates a new virtual time scheduler with the default value of TAbsolute for the initial clock value.
VirtualTimeScheduler<TAbsolute, TRelative>(TAbsolute, IComparer
Properties
NameDescription[Clock](Clock/VirtualTimeSchedulerBase(TAbsolute,)Gets the scheduler's absolute time clock value. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>
[Comparer](Comparer/VirtualTimeSchedulerBase(TAbsolute,)Gets the comparer used to compare absolute time values. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>
[IsEnabled](IsEnabled/VirtualTimeSchedulerBase(TAbsolute,)Gets whether the scheduler is enabled to run work. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>
[Now](Now/VirtualTimeSchedulerBase(TAbsolute,)Gets the scheduler's notion of current time. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>Top
Methods
NameDescriptionAddAdds a relative time to an absolute time value. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>
AdvanceByAdvances the scheduler's clock by the specified relative time, running all work scheduled for that timespan. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>
AdvanceToAdvances the scheduler's clock to the specified time, running all work till that point. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>
Equals(Inherited from Object.)
Finalize(Inherited from Object.)
GetHashCode(Inherited from Object.)
[GetNext](GetNext/VirtualTimeScheduler(TAbsolute,)Gets the next scheduled item to be executed. (Overrides VirtualTimeSchedulerBase<TAbsolute, TRelative>.GetNext()
GetType(Inherited from Object.)
MemberwiseClone(Inherited from Object.)
Schedule
Schedule
Schedule
ScheduleAbsolute
ScheduleAbsolute
ScheduleRelative
[Start](Start/VirtualTimeSchedulerBase(TAbsolute,)Starts the virtual time scheduler. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>
[Stop](Stop/VirtualTimeSchedulerBase(TAbsolute,)Stops the virtual time scheduler. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>
ToDateTimeOffsetConverts the absolute time value to a DateTimeOffset value. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>
ToRelativeConverts the TimeSpan value to a relative time value. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>
ToString(Inherited from Object.)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.
See Also
Reference
System.Reactive.Concurrency Namespace
VirtualTimeScheduler<TAbsolute, TRelative> Constructor (TAbsolute, IComparer<TAbsolute>)
Creates a new virtual time scheduler.
Namespace: System.Reactive.Concurrency
Assembly: System.Reactive (in System.Reactive.dll)
Syntax
'Declaration
Protected Sub New ( _
initialClock As TAbsolute, _
comparer As IComparer(Of TAbsolute) _
)
'Usage
Dim initialClock As TAbsolute
Dim comparer As IComparer(Of TAbsolute)
Dim instance As New VirtualTimeScheduler(initialClock, _
comparer)
protected VirtualTimeScheduler(
TAbsolute initialClock,
IComparer<TAbsolute> comparer
)
protected:
VirtualTimeScheduler(
TAbsolute initialClock,
IComparer<TAbsolute>^ comparer
)
new :
initialClock:'TAbsolute *
comparer:IComparer<'TAbsolute> -> VirtualTimeScheduler
protected function VirtualTimeScheduler(
initialClock : TAbsolute,
comparer : IComparer<TAbsolute>
)
Parameters
initialClock
Type: [TAbsolute](VirtualTimeScheduler/VirtualTimeScheduler(TAbsolute,)
The initial value for the clock.comparer
Type: System.Collections.Generic.IComparer<[TAbsolute](VirtualTimeScheduler/VirtualTimeScheduler(TAbsolute,)>
The comparer to determine causality of events based on absolute time.
See Also
Reference
[VirtualTimeScheduler<TAbsolute, TRelative> Class](VirtualTimeScheduler/VirtualTimeScheduler(TAbsolute,)
[VirtualTimeScheduler<TAbsolute, TRelative> Overload](VirtualTimeScheduler/VirtualTimeScheduler(TAbsolute,)
System.Reactive.Concurrency Namespace
VirtualTimeScheduler<TAbsolute, TRelative> Constructor
Creates a new virtual time scheduler with the default value of TAbsolute for the initial clock value.
Namespace: System.Reactive.Concurrency
Assembly: System.Reactive (in System.Reactive.dll)
Syntax
'Declaration
Protected Sub New
'Usage
Dim instance As New VirtualTimeScheduler()
protected VirtualTimeScheduler()
protected:
VirtualTimeScheduler()
new : unit -> VirtualTimeScheduler
protected function VirtualTimeScheduler()
See Also
Reference
[VirtualTimeScheduler<TAbsolute, TRelative> Class](VirtualTimeScheduler/VirtualTimeScheduler(TAbsolute,)
[VirtualTimeScheduler<TAbsolute, TRelative> Overload](VirtualTimeScheduler/VirtualTimeScheduler(TAbsolute,)