Created
April 16, 2020 17:09
-
-
Save DannyRusnok/2e353892daf77d3a669e8f015c715304 to your computer and use it in GitHub Desktop.
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
class Program | |
{ | |
static void Main(string[] args){ | |
var mediator = new ConcreteMediator(); | |
var c1 = new Colleague1(mediator); | |
var c2 = new Colleague2(mediator); | |
mediator.Colleague1 = c1; | |
mediator.Colleague2 = c2; | |
c1.Send("Hello, World! (from c1)"); | |
c2.Send("Hello, World! (from c2)"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment