コード例 #1
0
        public void SimpleTest()
        {
            var scheduler = SingleThreadScheduler.RunOnSeparateThread(TestLifetime, "Test Scheduler");

            DoTest(TestLifetime, scheduler);

            // IScheduler, but not TaskScheduler
            var schedulerWrapper = new MyTestSchedulerWrapper(scheduler);

            DoTest(TestLifetime, schedulerWrapper);
コード例 #2
0
 public SyncContext(MyTestSchedulerWrapper scheduler)
 {
     myScheduler = scheduler;
 }