Пример #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)
 {
 }