public SmartHubService()
        {
            InitializeComponent();

            HubEnvironment.Init();

            hub = new Hub();
            hub.Init();
        }
Beispiel #2
0
        static void Main(string[] args)
        {
            Console.Title = "Smart Hub";
            Console.WriteLine("Starting Hub...");

            HubEnvironment.Init();

            var hub = new Hub();
            hub.Init();
            hub.StartServices();

            Console.WriteLine("Hub started successfully!");
            Console.WriteLine("Press ENTER to exit");
            Console.ReadLine();

            hub.StopServices();
        }