Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [mediator]

The mediator pattern defines an object that encapsulates how a set of objects interact.

0
votes
0answers
26 views

FluentValidation/Mediatr: Where do I check if related entity exists? [closed]

First, sorry if I am doing anything wrong, this is my first post on Code Review. In my current project I am using FluentValidation and mediator pattern using Mediatr. My doubt is where do I put ...
2
votes
1answer
283 views

Simple Java OOP calculator with GUI

I'm learning Java and I've tried to write my own calculator with GUi based on this post. Here is the repo: https://github.com/MurDaD/java-calculator Could someone check my code and tell me how to ...
0
votes
1answer
62 views

Modeling a classroom with teacher and students using the mediator pattern in Go

I've made this implementation of a classroom with teacher and students using mediator pattern. Mediator is the teacher and colleague are studends. Main function is the following. Main function ...
2
votes
1answer
181 views

Service for querying resource availability, following DDD

I'm writing a service (asp.net core) in charge of determining availabilities of resources (rooms, desks...). I'm also trying to stick to the DDD principles to improve the quality of my code. I have ...
9
votes
4answers
607 views

ViewModels Mediator with multiple generic callbacks

I'm developing a mediator for an MVVM application. This application lets employees file tickets with IT support to ask for help. The mediator communicates messages and triggers callbacks between ...
0
votes
2answers
117 views

Callback notation in a Mediator [closed]

I'm implementing a Mediator and I'd like to simplify the callback notation a bit. My mediator has Register and Notify methods : ...
4
votes
1answer
944 views

Action<Object> callbacks using the mediator method

I have a WPF project which uses XAML and C#. It adheres (as best as I know) to the MVVM methodology. As part of it, I have used a mediator class (the 'Gang of Four' design). You register for ...
4
votes
0answers
692 views

CQRS mediator in Python

I've been studying the CQRS pattern created by Gregory Young and have been trying to come up with some sort of library or set of classes I can reuse in other projects. This is the mediator (bus) part ...
2
votes
2answers
411 views

Design Patterns in Swift: Mediator

I'm solving the following problem using the Mediator design pattern in Swift: Assume we track the location of all our mobile mechanics. We have noticed that there are times when a mobile mechanic ...
1
vote
1answer
195 views

Communicating between GUI and controller class using Mediator pattern

I am writing a program that allows a user to interact with MIDI-connected devices. Upon connecting a MIDI device, interactions with this device will update a GUI. Updates to the GUI include what keys ...
3
votes
2answers
278 views

Communicating messages to objects

In my MUD game engine, I built a messaging api that allows objects to subscribe to concrete implementations of an IMessage interface. Is there anything glaringly ...
3
votes
2answers
1k views

Mediator pattern implementation for game messaging

I am building out a MUD game engine and want my objects to communicate with each other. There is a wide range of message types that will be sent around, all of which implement IMessage. I adopted ...
12
votes
1answer
364 views

Use of Mediator Pattern or Proxy Pattern for a game

When a Wizard casts the Monster Summoning spell, all of the summoned monsters shall follow his command. Should the Wizard interact with his summoned monsters ...
5
votes
3answers
440 views

Use of mediator design pattern with mailing list implementation

I have implemented the following scenario for the Mediator pattern sample: MailingListMediator: Manages the subscription and send the mail back and forth. ...
1
vote
3answers
868 views

Marionette.js Mediator ('global' commands vs app controller)

I am currently migrating a large backbone application over to Marionette and am curious as to the opinions on what is a better design for mediating activity between modules. I have an Application ...
3
votes
1answer
1k views

Simple event mediator

I was trying to explain the mediator pattern to a new developer, and ended up writing a simple event mediator. Thoughts? EventMediator ...