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