Example #1
0
 protected override void OnStop()
 {
     try
     {
         _ngridServer.Stop(true);
     }
     catch (Exception ex)
     {
         Logger.Warn(ex.Message, ex);
     }
 }
Example #2
0
        static void Main(string[] args)
        {
            try
            {
                var server = new NGRIDServer();
                server.Start();

                Console.WriteLine("NGRID started.");
                Console.WriteLine("Press enter to stop...");
                Console.ReadLine();

                server.Stop(true);
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
                Console.ReadLine();
            }
        }