/// <summary>
 /// 立即发送
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="args"></param>
 public void SendMessageImmediately <T>(T args) where T : MessageEventArgs, new()
 {
     MessageEventBus.Add <T>(args);
 }
Example #2
0
 /// <summary>
 /// 发送消息
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="args"></param>
 protected virtual void SendMessage <T>(T args) where T : MessageEventArgs, new()
 {
     MessageEventBus.Add <T>(args);
 }