/// <summary> /// 获取会议地址上传到服务器(解除锁定) /// </summary> /// <param name="successed">是否上传成功</param> public void UPloadMeetAddressAndCancelLock(bool successed) { try { //只有会话初始化完毕才有的结果 DispatcherTimer lynTimer = null; TimerJob.StartRun(new Action(() => { string address = LyncHelper.GetConversation_Address(); if (!string.IsNullOrEmpty(address)) { lynTimer.Stop(); //开启会话 ModelManage.ConferenceLyncConversation.FillConversation(Constant.ConferenceName, address, new Action <bool>((issuccessed) => { if (successed) { //允许其他成员进行会议查询并进行初始化 ModelManage.ConferenceLyncConversation.AllowConversationInit(Constant.ConferenceName, new Action <bool>((flg) => { })); } })); //释放dns(改为自由获取),主窗体状态还原(非置顶) TimerJob.StartRun(new Action(() => { //设置DNS NetWorkAdapter.SetNetworkAdapter(Constant.RouteIp); //取消置顶 MainWindow.mainWindow.Topmost = false; })); } }), 500, out lynTimer); } catch (Exception ex) { LogManage.WriteLog(this.GetType(), ex); } finally { } }