0
我正在嘗試爲Lync 2010 UCMA創建一個簡單的聯繫人管理器。使用Lync 2010 UCMA 3.0添加組c#
我正在使用NotificationReceived
事件,並測試是否設置了IsFullNotification
標誌。我希望隨着團體的加入,不會有「IsFullNotification」。
但是這樣的事件從未發生,它始終設置爲true
。
如何在添加新創建的數量之前,仍然可以獲取已添加組的聯繫人的完整列表(添加成功後)以重新映射聯繫人。
P.S.
void OnNotificationReceived(object sender, ContactGroupNotificationEventArgs e)
{
Console.WriteLine("Received a contact update.");
if (e.IsFullNotification) //always this value :(
{
ExtractContactGroupInfo(e);
AddGroups();
}
else
{
HandleAddedGroupNotification(e); // The LINE
}
}
我,標誌着我需要的時候加入所有組執行行:使用translate.google.com
_contactGroupServices.NotificationReceived += OnNotificationReceived;
_contactGroupServices.BeginSubscribe(ar =>
{
try
{
_contactGroupServices.EndSubscribe(ar);
}
catch (RealTimeException rtex)
{
Console.WriteLine(rtex);
}
}
, null);
處理程序翻譯。而且我還需要ContactGroupNotificationEventArgs e
的當前值。
我甚至嘗試調用BeginSubscribe加入FLL組後,但有一個eroor發生:「數據會話處於無效staate建立」。 – Tahiaji
我試圖糾正一下翻譯,請檢查它是否聽起來不錯。如果我明白你的錯誤,我可能會偶然地改變某些事情。另外,我無法理解最後一個「我怎麼還能得到(..)」句子的意思,所以我把它留下了。您可以嘗試以兩種語言發佈文本,一種翻譯爲一種原件 - 這樣,有人可以準確地修復翻譯錯誤:)順便說一句。如果「羅馬」是波蘭的名字,我可以幫助下一次:) – quetzalcoatl