Created
December 16, 2014 06:30
-
-
Save chakkaradeep/dae92b3552ed5f46153e to your computer and use it in GitHub Desktop.
Create Discovery Service Client
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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