Exemple #1
0
        static void Main(string[] args)
        {
            _relay = new Relay();

            _relay.Subscribe(new ConsoleSubscriber("1"));
            _relay.Subscribe(new ConsoleSubscriber("2"));
            _relay.Subscribe(new ConsoleSubscriber("3"));

            Console.WriteLine("Press any key to relay message");
            Console.WriteLine("Press q to quit");

            RunTestLoop();
        }