skip to Main Content


Say hello to the toggle bar. This is an optional section you can use to display any content you'd like. Simply select a page from the theme panel and the content of the page will display here. You can even use the drag and drop builder to create this! This is a perfect place for your company mission statement, alerts, notices or anything else.

Get In Touch

Phone: 1-800-Total-Theme
Address: Las Vegas, Nevada

Our Location


Mediator Pattern

Post Series: Behavioral Design Pattern

This pattern allows multiple objects to communicate with each other’s without knowing each other’s structure.

Mediator Design Pattern C#


  • Mediator: This is an interface that defines operations which can be called by colleague objects for communication.
  • ConcreteMediator: This is a class that implement the communication operations of the Mediator interface.
  • Colleague: This is a class that defines a single, protected field that holds a reference to a mediator.
  • ConcreteColleagueA/B: These are the classes that communicate with each other via the mediator.


When to use it?

  1. Communication between multiple objects is well defined but potentially complex.
  2. When too many relationships exist and a common point of control or communication is required.
  3. Some object can be grouped and customized based on behaviors.


Leave a Reply

Your email address will not be published. Required fields are marked *

Back To Top