Пример #1
0
 /// <summary>
 /// 立即发送
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="args"></param>
 public void SendMessageImmediately <T>(T args) where T : MessageEventArgs, new()
 {
     MessageEventBus.Add <T>(args);
 }
Пример #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);
 }