Exemplo n.º 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;
        }
Exemplo n.º 2
0
 public SitesHelper(AuthenticationHelper authenticationHelper) : 
     base(authenticationHelper)
 {
 }
Exemplo n.º 3
0
 public ActiveDirectoryHelper(AuthenticationHelper authenticationHelper) : 
     base(authenticationHelper)
 {
 }
Exemplo n.º 4
0
 public CalendarHelper(AuthenticationHelper authenticationHelper) : 
     base(authenticationHelper)
 {
 }
Exemplo n.º 5
0
 public ContactsHelper(AuthenticationHelper authenticationHelper) : 
     base(authenticationHelper)
 {
 }