public static void Main(string[] args) { Greet(); Configure(); SetupPropertyCache(); new MainMenu().Show(); Console.WriteLine("Closing connection"); EventHubManager.CloseConnectionToEventHub().Wait(); }
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(); }
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(); }
private void ResendLastSentMessage() { EventHubManager.ReSendLastMessageToEventHub().Wait(); }
private void SendCustomGameEvent() { var msg = (string)EditProperty("Custom Message", $"This is a custom msg at {DateTime.UtcNow}", typeof(string)); EventHubManager.SendMessageToEventHub(msg).Wait(); }