Пример #1
0
        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();
        }
Пример #2
0
        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();
        }