using XCore.Mediator; // Create a new mediator var mediator = new Mediator(); // Create a new colleague var colleague1 = new Colleague(); // Add the colleague to the mediator mediator.AddColleague(colleague1); // Create another colleague var colleague2 = new Colleague(); // Add the second colleague to the mediator mediator.AddColleague(colleague2); // Send a message from colleague1 to colleague2 through the mediator mediator.Send(colleague1, colleague2, "Hello, colleague2!");In this example, two colleagues are added to the mediator and one sends a message to the other through the mediator. Package Library: XCore.Mediator