Beispiel #1
0
        static void Main(string[] args)
        {
            EventPublisher publisher = new EventPublisher();

            EventReader1 reader1 = new EventReader1(publisher);

            EventReader2 reader2 = new EventReader2(publisher);

            publisher.DoSomthing();

            Console.WriteLine("This program already finished!");

            Console.ReadLine();
        }
Beispiel #2
0
        static void Main(string[] args)
        {
            EventPublisher publisher = new EventPublisher();

            EventReader1 reader1 = new EventReader1(publisher);

            EventReader2 reader2 = new EventReader2(publisher);

            publisher.DoSomthing();

            Console.WriteLine("This program already finished!");

            Console.ReadLine();
        }