/// <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; } } }
/// <summary> /// 注册链接 /// </summary> /// <param name="operatorId"></param> /// <param name="userName"></param> public void RegisterConnection(string operatorId, string userName) { HubProxy_Message.Invoke("RegisterConnection", operatorId, userName); }
/// <summary> /// 获取用户列表 /// </summary> public void GetUserList() { HubProxy_Message.Invoke("GetUserList"); }