예제 #1
0
        public DiscoveryHelper(AuthenticationHelper authenticationHelper) : 
            base(authenticationHelper)
        {
            DiscoveryClient discoveryClient =
                new DiscoveryClient(
                    Office365ServicesUris.DiscoveryServiceEndpointUri,
                                    async () =>
                                    {
                                        var discoveryAuthResult =
                                            await this.AuthenticationHelper.AuthenticationContext.AcquireTokenSilentAsync(
                                                Office365ServicesUris.DiscoveryServiceResourceId,
                                                AuthenticationHelper.ClientId,
                                                new UserIdentifier(
                                                    this.AuthenticationHelper.AuthenticationResult.UserInfo.UniqueId, 
                                                    UserIdentifierType.UniqueId));

                                        return discoveryAuthResult.AccessToken;
                                    });

            this.DiscoveryClient = discoveryClient;
        }
예제 #2
0
 public SitesHelper(AuthenticationHelper authenticationHelper) : 
     base(authenticationHelper)
 {
 }
예제 #3
0
 public ActiveDirectoryHelper(AuthenticationHelper authenticationHelper) : 
     base(authenticationHelper)
 {
 }
예제 #4
0
 public CalendarHelper(AuthenticationHelper authenticationHelper) : 
     base(authenticationHelper)
 {
 }
예제 #5
0
 public ContactsHelper(AuthenticationHelper authenticationHelper) : 
     base(authenticationHelper)
 {
 }