コード例 #1
0
        public static IActiveObject CreateActiveObject()
        {
            var queue     = new ActivationQueue();
            var scheduler = new SchedulerThread(queue);

            var proxy = new Proxy(scheduler, new Servant());

            Task.Run(() => scheduler.Run());

            return(proxy);
        }
コード例 #2
0
 public SchedulerThread(ActivationQueue queue)
 {
     this.queue = queue;
 }