Example #1
0
        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));
        }
Example #2
0
 public abstract Object NotifyMessage(ModuleMessage message);