Esempio n. 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));
        }
Esempio n. 2
0
 public abstract Object NotifyMessage(ModuleMessage message);