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