public static void Main(string[] args) { var shutdown = false; #region Fallen-8 startup var fallen8 = new Fallen8(); #endregion #region services #region Fallen-8 REST API fallen8.ServiceFactory.StartGraphService(); fallen8.ServiceFactory.StartAdminService(); #endregion #region benchmark api IService introService; if (fallen8.ServiceFactory.TryAddService(out introService, "Fallen-8_Benchmark_Service", "Benchmark API", null)) { introService.TryStart(); } #endregion #endregion #region shutdown Console.WriteLine("Enter 'shutdown' to initiate the shutdown of this instance."); while (!shutdown) { var command = Console.ReadLine(); if (command == null) { continue; } if (command.ToUpper() == "SHUTDOWN") { shutdown = true; } } Console.WriteLine("Shutting down Fallen-8 startup"); fallen8.Shutdown(); Console.WriteLine("Shutdown complete"); #endregion }
static void Main(string[] args) { var shutdown = false; #region Fallen-8 startup var fallen8 = new Fallen8(); #endregion #region services #region Fallen-8 REST API fallen8.ServiceFactory.StartGraphService(IPAddress.Parse(Config.Default.IPAddress), Config.Default.Port); fallen8.ServiceFactory.StartAdminService(IPAddress.Parse(Config.Default.IPAddress), Config.Default.Port); #endregion #endregion #region shutdown Console.WriteLine("Enter 'shutdown' to initiate the shutdown of this instance."); while (!shutdown) { var command = Console.ReadLine(); if (command == null) { continue; } if (command.ToUpper() == "SHUTDOWN") { shutdown = true; } } Console.WriteLine("Shutting down Fallen-8 startup"); fallen8.Shutdown(); Console.WriteLine("Shutdown complete"); #endregion }