简体   繁体   中英

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

I have problem getting all contact endpoints using the 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:

在此处输入图片说明

However when I debug, I only get two endpoints:

在此处输入图片说明

Is this a bug in the API? Or am I missing anything?

Per the answer to this question: Lync - inconsistent behavior with ContactEndpoints

You may find that this answer from Microsoft is the answer to your issue as well:

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. Photo is an example for this optimization. Another example is ContactEndpoints. Please take a look at Contact presence subscription changes section of the Migration doc for Lync 2013 page in MSDN docs. Specifically you must create and maintain your own ContactSubscription for the contacts that you need all the ContactEndpoints.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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