Пример #1
0
 /// <summary>
 /// 发送异常
 /// </summary>
 /// <param name="ex">异常</param>
 public void SendException(Exception ex)
 {
     dynamic args = new DynamicArgs<Exception>(ex);
     this.Send(Send_Exception, args);
 }
Пример #2
0
 /// <summary>
 /// 发送一条字符串消息给全部收听者,除了拒收的之外
 /// </summary>
 /// <param name="val">字符串消息内容</param>
 public void SendAll(string val)
 {
     dynamic args = new DynamicArgs<string>(val);
     this.Send(Send_All, args);
 }