Created
April 16, 2020 16:34
-
-
Save DannyRusnok/e40ae62a56fcd6d50a762915739921a3 to your computer and use it in GitHub Desktop.
Abstract class Colleague
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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