Пример #1
0
        /// <summary>
        /// you can move this function to other class eg: CommandSender
        /// </summary>
        /// <param name="c"></param>
        public static void PushCommand(ICommand c)
        {
            //var t = c.GetType();
            //Action<ICommand> a;
            //lock (_commandLocker)
            //{
            //    if (!_commandHandler.TryGetValue(t, out a) || a == null)
            //    {
            //        throw new EntryPointNotFoundException($"Not found type: {t}. Check DomainEngine.Boot");
            //    }
            //}

            //a(c);
            MemoryQueue.PushCommand(c);
        }
Пример #2
0
 public void Publish(IEvent e)
 {
     MemoryQueue.PushEvent(e);
 }