コード例 #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 Proxy(SchedulerThread scheduler, Servant servant)
 {
     this.scheduler = scheduler;
     this.servant   = servant;
 }