Exemple #1
0
        static void Main(string[] args)
        {
            var samplesServer = new SamplesTestServer();
            samplesServer.TryConnect("127.0.0.1", RouterClient.DefaultPort);

            // Forbid process to terminate (unless ctrl+c)
            while (true)
            {
                Console.Read();
                Thread.Sleep(100);
            }
        }
Exemple #2
0
        static void Main(string[] args)
        {
            var samplesServer = new SamplesTestServer();

            try
            {
                samplesServer.TryConnect("127.0.0.1", RouterClient.DefaultPort).Wait();
            }
            catch
            {
                return;
            }

            // Forbid process to terminate (unless ctrl+c)
            while (true)
            {
                Console.Read();
                Thread.Sleep(100);
            }
        }