/// <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); }
public void Publish <T>(T @event) where T : Event { messageProcessor.Send(@event); }