Example #1
0
        private static void Main()
        {
            Program.address = new Uri(string.Format(CultureInfo.InvariantCulture, "ws://{0}/chat", Program.config.HostPort));
            Program.clients = new ClientCollection(Program.config.Clients);

            // Start clients with delay in between.
            Program.timer = new Timer(Program.AddClient, null, 0, Program.config.ClientStartDelay);

            Console.WriteLine("\nPress <ENTER> to terminate...");
            Console.ReadLine();
        }
Example #2
0
        private static void Main()
        {
            Program.address = new Uri(string.Format(CultureInfo.InvariantCulture, "ws://{0}/chat", Program.config.HostPort));
            Program.clients = new ClientCollection(Program.config.Clients);

            // Start clients with delay in between.
            Program.timer = new Timer(Program.AddClient, null, 0, Program.config.ClientStartDelay);

            Console.WriteLine("\nPress <ENTER> to terminate...");
            Console.ReadLine();
        }