Exemplo n.º 1
0
 public Subscriber(Publisher pub)
 {
     pub.RaiseTimerEvent += HandleTimerEvent;
 }
 static void Main()
 {
     Publisher pub = new Publisher();
     Subscriber sub = new Subscriber(pub);
     pub.Tick(3, 7);
 }