Exemplo n.º 1
0
 public void LeaveConversation(string conferenceName, string contactUri)
 {
     lock (objLeaveConversation)
     {
         try
         {
             //会议名称不为空
             if (!string.IsNullOrEmpty(conferenceName))
             {
                 LeaveConversationEntity leaveConversationEntity = new LeaveConversationEntity();
                 leaveConversationEntity.ContactUri = contactUri;
                 this.InformClient3(conferenceName, leaveConversationEntity);
             }
         }
         catch (Exception ex)
         {
             LogManage.WriteLog(this.GetType(), ex);
         }
     }
 }
 public void LeaveConversation(int conferenceID, string contactUri)
 {
     lock (objLeaveConversation)
     {
         try
         {
             //会议名称不为空
             if (conferenceID != 0)
             {
                 LeaveConversationEntity leaveConversationEntity = new LeaveConversationEntity();
                 leaveConversationEntity.ContactUri = contactUri;
                 this.InformClient(conferenceID, LyncConversationFlgType.LeaveConversation, leaveConversationEntity);
             }
         }
         catch (Exception ex)
         {
             LogManage.WriteLog(this.GetType(), ex);
         }
     }
 }
Exemplo n.º 3
0
 /// <summary>
 /// 实时同步(发送信息给客户端)
 /// </summary>
 /// <param name="conferenceName">会议名称</param>
 public void InformClient3(string conferenceName, LeaveConversationEntity leaveConversationEntity)
 {
     try
     {
         //会议名称不为空
         if (!string.IsNullOrEmpty(conferenceName))
         {
             //生成一个数据包(文件甩屏)
             PackageBase pack = new PackageBase()
             {
                 ConferenceClientAcceptType = ConferenceWebCommon.Common.ConferenceClientAcceptType.LyncConversationSync,
             };
             pack.LyncConversationFlg.LeaveConversationEntity = leaveConversationEntity;
             pack.LyncConversationFlg.LyncConversationFlgType = LyncConversationFlgType.LeaveConversation;
             //会议通讯节点信息发送管理中心
             Constant.SendClientCenterManage(Constant.DicLyncMeetServerSocket, conferenceName, pack);
         }
     }
     catch (Exception ex)
     {
         LogManage.WriteLog(this.GetType(), ex);
     }
 }