Exemplo n.º 1
0
        public static void Main(string[] args)
        {
            Console.WriteLine();
            Console.WriteLine(@" _   _      _   _               ");
            Console.WriteLine(@"| \ | | ___| |_| |__   ___ _ __ ");
            Console.WriteLine(@"|  \| |/ _ \ __| '_ \ / _ \ '__|");
            Console.WriteLine(@"| |\  |  __/ |_| | | |  __/ |   ");
            Console.WriteLine(@"|_| \_|\___|\__|_| |_|\___|_|   ");
            Console.WriteLine(@"- Analytics Test Client -");
            Console.WriteLine();

            CultureInfoEx.SetupNetherCultureInfo();
            Config.Check();
            SetupPropertyCache();

            new MainMenu().Show();

            Console.WriteLine("Closing connection");
            EventHubManager.CloseConnectionToEventHub().Wait();
        }
Exemplo n.º 2
0
        public static void Main(string[] args)
        {
            Console.WriteLine();
            Console.WriteLine(@" _   _      _   _               ");
            Console.WriteLine(@"| \ | | ___| |_| |__   ___ _ __ ");
            Console.WriteLine(@"|  \| |/ _ \ __| '_ \ / _ \ '__|");
            Console.WriteLine(@"| |\  |  __/ |_| | | |  __/ |   ");
            Console.WriteLine(@"|_| \_|\___|\__|_| |_|\___|_|   ");
            Console.WriteLine(@"- Analytics Test Client -");
            Console.WriteLine();

            CultureInfoEx.SetupNetherCultureInfo();
            Config.Check();
            SetupPropertyCache();

            var client = new EventHubAnalyticsClient(Config.Root[Config.NAH_EHLISTENER_CONNECTIONSTRING], Config.Root[Config.NAH_EHLISTENER_EVENTHUBPATH]);

            new MainMenu(client).Show();

            Console.WriteLine("Closing connection");
        }