static void Main() { var notifier = new Notifier(); var client = new Client(notifier); notifier.DoSomething(); var badClient = new BadClient(notifier); notifier.DelegateNotEvent.Invoke(); }
public BadClient(Notifier notifier) { notifier.DelegateNotEvent = NotifierDelegateInvoked; }
public Client(Notifier notifier) { notifier.SomethingHappened += NotifierOnSomethingHappened; }