public void ApplyMatrixEntity(int conferenceID, ConferenceMaxtrixApplyEntity conferenceMaxtrixApplyEntity) { try { //上锁,达到线程互斥作用 lock (objApplyMatrixEntity) { try { //会议名称不为空 if (conferenceID == 0) { return; } ConferenceMatrixEntity conferenceMatrixEntity = this.GetMatrixEntity(conferenceID); if (conferenceMatrixEntity != null) { conferenceMaxtrixApplyEntity.BeforeSeatEntity = conferenceMatrixEntity.SeatEntity; } //实时同步(发送信息给客户端) this.InformClient(conferenceID, conferenceMaxtrixApplyEntity); } catch (Exception ex) { LogManage.WriteLog(this.GetType(), ex); } } } catch (Exception ex) { LogManage.WriteLog(this.GetType(), ex); } }
/// <summary> /// 投影申请 /// </summary> public void ApplyMaxtrixProjection(int conferenceID, ConferenceMaxtrixApplyEntity conferenceMaxtrixApplyEntity, Action <bool> callBack) { try { this.ApplyMaxtrixProjection_CallBack = callBack; Client.ApplyMatrixEntityAsync(conferenceID, conferenceMaxtrixApplyEntity); } catch (Exception ex) { LogManage.WriteLog(this.GetType(), ex); } finally { } }