Skip to content

Instantly share code, notes, and snippets.

@DannyRusnok
Created April 16, 2020 16:48
Show Gist options
  • Save DannyRusnok/26e1f72b629a53609eb8969f93bec954 to your computer and use it in GitHub Desktop.
Save DannyRusnok/26e1f72b629a53609eb8969f93bec954 to your computer and use it in GitHub Desktop.
public class Colleague1 : Colleague
{
public Colleague1(Mediator mediator) : base(mediator) { }
public override void HandleNotification(string message){
Console.WriteLine($"Colleague1 receives message:{message}");
}
}
public class Colleague2 : Colleague
{
public Colleague1(Mediator mediator) : base(mediator) { }
public override void HandleNotification(string message){
Console.WriteLine($"Colleague2 receives message:{message}");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment