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