public void Run() { x10Service = new X10Service(a => { Logger.Log(a); }); hubProxy = ConfigureServerCommunications(); Logger.loggerInternal = (message) => { Console.WriteLine(message); hubProxy.Invoke("commandSent", string.Empty, message); }; scheduler = ConfigureScheduledEvents(); scheduler.Start(); }