Beispiel #1
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();
            }
        }
Beispiel #2
0
 /// <summary>
 /// Constructor.
 /// </summary>
 public NGRIDService()
 {
     InitializeComponent();
     _ngridServer = new NGRIDServer();
 }