远程用户关闭其 Lync 聊天窗口后,对话状态为已终止。我怎样才能重新建立它们?
我的操作有什么问题?(它抛出“操作在当前对象状态下无效(已终止)”)
void conversation_StateChanged(object sender, StateChangedEventArgs<ConversationState> e)
{
if (e.State == ConversationState.Terminated)
{
_terminated = true;
}
if (e.State == ConversationState.Established)
{
_terminated = false;
}
}
if (_terminated)
{
imCall.BeginEstablish(null, null, (ar) =>
{
flow = imCall.Flow;
_callEstablishComplete.Set();
}, null);
_callEstablishComplete.WaitOne();
}