Пример #1
0
        public static void Main(string[] args)
        {
            Greet();
            Configure();
            SetupPropertyCache();

            new MainMenu().Show();

            Console.WriteLine("Closing connection");
            EventHubManager.CloseConnectionToEventHub().Wait();
        }
Пример #2
0
        private static void SendMessage(INetherMessage gameEvent)
        {
            // Serialize object to JSON
            var msg = JsonConvert.SerializeObject(
                gameEvent,
                Formatting.Indented,
                new JsonSerializerSettings {
                ContractResolver = new CamelCasePropertyNamesContractResolver()
            });

            EventHubManager.SendMessageToEventHub(msg).Wait();
        }
Пример #3
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();
        }
Пример #4
0
 private void ResendLastSentMessage()
 {
     EventHubManager.ReSendLastMessageToEventHub().Wait();
 }
Пример #5
0
        private void SendCustomGameEvent()
        {
            var msg = (string)EditProperty("Custom Message", $"This is a custom msg at {DateTime.UtcNow}", typeof(string));

            EventHubManager.SendMessageToEventHub(msg).Wait();
        }