public Object Mediate(ModuleMessage mediateEvent) { if (!Modules.ContainsKey(mediateEvent.Target)) { throw new SystemException("The module '" + mediateEvent.Target + "' it's not registered"); } Console.WriteLine("Mediate source > '" + mediateEvent.Source + "', target > '" + mediateEvent.Target + "', messagetType > '" + mediateEvent.MessageType + "'"); AbstractModule module = Modules[mediateEvent.Target]; return(module.NotifyMessage(mediateEvent)); }
public abstract Object NotifyMessage(ModuleMessage message);