Skip to content

Instantly share code, notes, and snippets.

@chakkaradeep
Created December 16, 2014 06:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chakkaradeep/dae92b3552ed5f46153e to your computer and use it in GitHub Desktop.
Save chakkaradeep/dae92b3552ed5f46153e to your computer and use it in GitHub Desktop.
Create Discovery Service Client
var discoveryClient = new DiscoveryClient(DiscoveryServiceEndpointUri,
async () =>
{
var authResult = await GetAccessTokenAsync(DiscoveryServiceResourceId);
userId = authResult.UserInfo.UniqueId;
return authResult.AccessToken;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment