static void Main() { Publisher pub = new Publisher(); Handler hand = new Handler(pub); pub.Start(2, 10); }
public Handler(Publisher pub) { pub.RaiseTimerEvent += HandleTimerEvent; }