Skip to content

Instantly share code, notes, and snippets.

@DannyRusnok
Created April 16, 2020 16:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DannyRusnok/e40ae62a56fcd6d50a762915739921a3 to your computer and use it in GitHub Desktop.
Save DannyRusnok/e40ae62a56fcd6d50a762915739921a3 to your computer and use it in GitHub Desktop.
Abstract class Colleague
public abstract class Colleague
{
protected Mediator _mediator;
protected Colleague(Mediator mediator){
_mediator = mediator;
}
public void Send(string message){
_mediator.Send(message, this);
}
public abstract void HandleNotification(string message);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment