Exemplo n.º 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);
        }
Exemplo n.º 2
0
 public SchedulerThread(ActivationQueue queue)
 {
     this.queue = queue;
 }