Beispiel #1
0
 private static void Main()
 {
     consoleCommandController = new ConsoleCommandController();
     consoleCommandController.Launch();
     try {
         Log.Info("Starting GameService...");
         SetConsoleConfigurations();
         SetNumberDecimalSeparator();
         GameServer.Kernel = new StandardKernel(new DepInjectionModule());
         GameServer server = GameServer.Kernel.Get <GameServer>();
         server.Start();
         Process.GetCurrentProcess().WaitForExit();
     }
     catch (Exception ex)
     {
         Console.WriteLine("EXCEPTION : " + ex.Message);
     }
 }
Beispiel #2
0
 private static void Main()
 {
     consoleCommandController = new ConsoleCommandController();
     consoleCommandController.Launch();
     try {
         Log.Info("Starting GameService...");
         SetConsoleConfigurations();
         SetNumberDecimalSeparator();
         var serviceCollection = new ServiceCollection();
         ConfigureServices(serviceCollection);
         var serviceProvider = serviceCollection.BuildServiceProvider();
         serviceProvider.GetService <GameServer>().Start();
         Process.GetCurrentProcess().WaitForExit();
     }
     catch (Exception ex)
     {
         Console.WriteLine("EXCEPTION : " + ex.Message + " " + ex.Data + " " + ex.Source + ex.StackTrace);
     }
 }