简体   繁体   English

在Lync SDK中使用Contact.GetContactInformation不会返回状态

[英]Using Contact.GetContactInformation in Lync SDK doesn't return status

I'm using the Contact.GetContactInformation method to attempt to pull a contact's availability information. 我正在使用Contact.GetContactInformation方法来尝试提取联系人的可用性信息。 The issue I'm running into is that it doesn't seem to be getting the correct information unless I actually go into Lync and have it refresh that user's current status (ie by searching their name so that Lync resolves their status). 我遇到的问题是,除非我实际进入Lync并使其刷新该用户的当前状态(即通过搜索其名称以使Lync解析其状态),否则它似乎无法获得正确的信息。

It seems as though that method pulls information from some Lync cache and doesn't actually go find the latest information. 似乎该方法从某些Lync缓存中提取信息,而实际上并没有找到最新信息。 How can I get the latest information for a contact in Lync, even if the contact is not in my list and Lync hasn't found their status information yet? 即使该联系人不在我的列表中并且Lync尚未找到其状态信息,如何在Lync中获取该联系人的最新信息?

You could try subscribing to ContactInformationChanged event and then catching the events from that. 您可以尝试订阅ContactInformationChanged事件,然后从中捕获事件。 An active subscription to the contact details usually ensures you get the most up to date information back from the server. 主动订阅联系人详细信息通常可以确保您从服务器获取最新信息。 Will do a code example later today if/when I get time. 如果有时间的话,今天晚些时候将做一个代码示例。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM