VirtualTimeScheduler<TAbsolute、TRelative> クラス

スケジュールされたアイテムの優先度キューを使用する仮想タイム スケジューラの基本クラスを表します。

継承階層

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

Namespace:System.Reactive.Concurrency
アセンブリ: System.Reactive (System.Reactive.dll)

構文

'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.

型パラメーター

  • TAbsolute
    絶対時間引数の型。
  • TRelative
    相対時間引数の型。

VirtualTimeScheduler<TAbsolute、TRelative> 型は、次のメンバーを公開します。

コンストラクター

  名前 説明
Protected メソッド VirtualTimeScheduler<TAbsolute、TRelative>() 初期クロック値の既定値 TAbsolute を使用して、新しい仮想タイム スケジューラを作成します。
Protected メソッド VirtualTimeScheduler<TAbsolute, TRelative>(TAbsolute, IComparer<TAbsolute>) 新しい仮想時間スケジューラを作成します。

プロパティ

  名前 説明
プロパティ 時計 スケジューラの絶対タイム クロック値を取得します。 ( VirtualTimeSchedulerBase<TAbsolute、TRelative> から継承されます)。
保護されたプロパティ 比較演算子 絶対時間値を比較するために使用される比較子を取得します。 ( VirtualTimeSchedulerBase<TAbsolute、TRelative> から継承されます)。
プロパティ IsEnabled スケジューラが作業の実行を有効にするかどうかを取得します。 ( VirtualTimeSchedulerBase<TAbsolute、TRelative> から継承されます)。
プロパティ Now スケジューラの現在の時刻の概念を取得します。 ( VirtualTimeSchedulerBase<TAbsolute、TRelative> から継承されます)。

メソッド

  名前 説明
Protected メソッド 追加 絶対時間値に相対時間を追加します。 ( VirtualTimeSchedulerBase<TAbsolute、TRelative> から継承されます)。
Public メソッド AdvanceBy 指定した相対時間だけスケジューラのクロックを進め、その期間にスケジュールされたすべての作業を実行します。 ( VirtualTimeSchedulerBase<TAbsolute、TRelative> から継承されます)。
Public メソッド AdvanceTo スケジューラのクロックを指定した時刻に進め、その時点まですべての作業を実行します。 ( VirtualTimeSchedulerBase<TAbsolute、TRelative> から継承されます)。
Public メソッド [等しい] ( オブジェクトから継承されます。
Protected メソッド Finalize ( オブジェクトから継承されます。
Public メソッド GetHashCode ( オブジェクトから継承されます。
Protected メソッド GetNext 次に実行されるスケジュールされた項目を取得します。 ( VirtualTimeSchedulerBase<TAbsolute、TRelative> をオーバーライドします。GetNext().)
Public メソッド GetType ( オブジェクトから継承されます。
Protected メソッド MemberwiseClone ( オブジェクトから継承されます。
Public メソッド Schedule<TState>(TState, Func<IScheduler, TState, IDisposable>) 実行するアクションをスケジュールします。 ( VirtualTimeSchedulerBase<TAbsolute、TRelative> から継承されます)。
Public メソッド Schedule<TState>(TState, DateTimeOffset, Func<IScheduler, TState, IDisposable>) dueTime で実行されるアクションをスケジュールします。 ( VirtualTimeSchedulerBase<TAbsolute、TRelative> から継承されます)。
Public メソッド Schedule<TState>(TState, TimeSpan, Func<IScheduler, TState, IDisposable>) dueTime の後に実行されるアクションをスケジュールします。 ( VirtualTimeSchedulerBase<TAbsolute、TRelative> から継承されます)。
Public メソッド ScheduleAbsolute<TState>(TState, TAbsolute, Func<IScheduler, TState, IDisposable>) dueTime で実行されるアクションをスケジュールします。 ( VirtualTimeSchedulerBase<TAbsolute、TRelative> をオーバーライドします。ScheduleAbsolute<TState>(TState, TAbsolute, Func<IScheduler, TState, IDisposable>))
Public メソッド ScheduleAbsolute<TState>(TState, TAbsolute, Func<IScheduler, TState, IDisposable>) dueTime で実行されるアクションをスケジュールします。 ( VirtualTimeSchedulerBase<TAbsolute、TRelative> から継承されます)。
Public メソッド ScheduleRelative<TState> dueTime で実行されるアクションをスケジュールします。 ( VirtualTimeSchedulerBase<TAbsolute、TRelative> から継承されます)。
Public メソッド Start 仮想時間スケジューラを開始します。 ( VirtualTimeSchedulerBase<TAbsolute、TRelative> から継承されます)。
Public メソッド Stop 仮想タイム スケジューラを停止します。 ( VirtualTimeSchedulerBase<TAbsolute、TRelative> から継承されます)。
Protected メソッド ToDateTimeOffset 絶対値を DateTimeOffset 値に変換します。 ( VirtualTimeSchedulerBase<TAbsolute、TRelative> から継承されます)。
Protected メソッド ToRelative TimeSpan 値を相対時間値に変換します。 ( VirtualTimeSchedulerBase<TAbsolute、TRelative> から継承されます)。
Public メソッド ToString ( オブジェクトから継承されます)。

スレッド セーフ

この型の public static (Visual Basic では Shared) のメンバーはすべて、スレッド セーフです。 インスタンス メンバーの場合は、スレッド セーフであるとは限りません。

参照

リファレンス

System.Reactive.Concurrency 名前空間