Ejemplo n.º 1
0
 /// <summary>
 /// 发送命令
 /// </summary>
 /// <typeparam name="TCommand"></typeparam>
 /// <param name="command"></param>
 public void Send <TCommand>(TCommand command) where TCommand : Command
 {
     if (command == null)
     {
         return;
     }
     messageProcessor.Send(command);
 }
Ejemplo n.º 2
0
 public void Publish <T>(T @event) where T : Event
 {
     messageProcessor.Send(@event);
 }