/// <summary> /// 客户端统一命令 /// </summary> public void ClientControl(string conferenceName, string commander, ClientControlType ClientControlType, Action <bool> callBack) { try { if (ConferenceInfo.client != null) { //模式切换回调 this.ClientControl_CallBack = callBack; //异步获取会议信息 ConferenceInfo.Client.ClientControlAsync(conferenceName, commander, ClientControlType); } } catch (Exception ex) { LogManage.WriteLog(this.GetType(), ex); } finally { } }
public void ClientControl(int conferenceID, string commander, ClientControlType ClientControlType) { //上锁,达到线程互斥作用 lock (objClientControl) { try { ConferenceClientControlEntity ConferenceClientControlEntity = new ConferenceClientControlEntity(); ConferenceClientControlEntity.Sharer = commander; ConferenceClientControlEntity.ClientControlType = ClientControlType; this.InformClientAboutClientControl(conferenceID, ConferenceClientControlEntity); } catch (Exception ex) { LogManage.WriteLog(this.GetType(), ex); } finally { } } }
public ClientContext(ClientControlType controlType) { this.controlType = controlType; }