Example #1
0
 /// <summary>
 /// SendToOthers
 /// </summary>
 /// <param name="message"></param>
 public void SendToOthers(MessageModel message)
 {
     try
     {
         HubProxy_Message.Invoke("SendToOthers", message);
     }
     catch (Exception ex)
     {
         if (Connection != null)
         {
             Connection.Start().Wait();
             HubProxy_Message.Invoke("SendToOthers", message);
         }
         else
         {
             throw ex;
         }
     }
 }
Example #2
0
 /// <summary>
 /// 注册链接
 /// </summary>
 /// <param name="operatorId"></param>
 /// <param name="userName"></param>
 public void RegisterConnection(string operatorId, string userName)
 {
     HubProxy_Message.Invoke("RegisterConnection", operatorId, userName);
 }
Example #3
0
 /// <summary>
 /// 获取用户列表
 /// </summary>
 public void GetUserList()
 {
     HubProxy_Message.Invoke("GetUserList");
 }