Skip to content
This repository has been archived by the owner on Mar 7, 2019. It is now read-only.

Commit

Permalink
Update UCWAClient.GetUserDiscoverUri (#22)
Browse files Browse the repository at this point in the history
Autodiscovery should start from "lyncdiscoverinternal" and if it fails use external reference "lyncdiscover". According to my experience, S4B on-premise setup may have only "lyncdiscoverinternal" and no external discovery link.
Source: https://msdn.microsoft.com/en-us/skype/ucwa/rooturl
  • Loading branch information
Valerii-Poliakov authored and kenakamu committed Aug 1, 2017
1 parent 53bd18c commit cc99f65
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion UCWASDK/UCWASDK/UCWAClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -964,7 +964,15 @@ private async Task<User> GetUserDiscoverUri()
HttpResponseMessage response = null;
try
{
response = await client.GetAsync($"https://lyncdiscover.{Settings.Tenant}");
try
{
response = await client.GetAsync($"https://lyncdiscoverinternal.{Settings.Tenant}");
}
catch
{
// request externally if internal discovery fails
response = await client.GetAsync($"https://lyncdiscover.{Settings.Tenant}");
}
}
catch (HttpRequestException hex)
{
Expand Down

0 comments on commit cc99f65

Please sign in to comment.