简体   繁体   English

Lync API:无法获取所有联系人端点(对于我自己的端点)

[英]Lync API: Unable to get all contact endpoints (for my own endpoints)

I have problem getting all contact endpoints using the Lync API. 我在使用Lync API获取所有联系人终结点时遇到问题。 Here's my code: 这是我的代码:

static void Main(string[] args)
{
  LyncClient client = LyncClient.GetClient();
  var endpoints = (List<object>)client.Self.Contact.GetContactInformation(ContactInformationType.ContactEndpoints);
}

Here's my Lync setup: 这是我的Lync设置:

在此处输入图片说明

However when I debug, I only get two endpoints: 但是,当我调试时,我只有两个端点:

在此处输入图片说明

Is this a bug in the API? 这是API中的错误吗? Or am I missing anything? 还是我错过了什么?

Per the answer to this question: Lync - inconsistent behavior with ContactEndpoints 每个问题的答案: Lync-ContactEndpoints的行为不一致

You may find that this answer from Microsoft is the answer to your issue as well: 您可能会发现Microsoft的此答案也可以解决您的问题:

The behavior you are seeing is due to presence subscription optimization to the Lync client so that the subscription is delayed until the necessary contact information is required by the Lync client. 您看到的行为是由于对Lync客户端的状态订阅优化所致,因此该订阅被延迟,直到Lync客户端需要必要的联系信息为止。 Photo is an example for this optimization. 照片是此优化的一个示例。 Another example is ContactEndpoints. 另一个示例是ContactEndpoints。 Please take a look at Contact presence subscription changes section of the Migration doc for Lync 2013 page in MSDN docs. 请在MSDN文档中的Lync 2013迁移文档页面中查看“ 联系人状态订阅更改”部分 Specifically you must create and maintain your own ContactSubscription for the contacts that you need all the ContactEndpoints. 具体来说,您必须为需要所有ContactEndpoints的联系人创建并维护自己的ContactSubscription。

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

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