Пример #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;
 }