示例#1
0
 public OneDriveUser(string token)
 {
     RefreshToken = token;
     Api          = RestService.For <IMicrosoftGraphApi>(
         "https://graph.microsoft.com",
         new RefitSettings
     {
         JsonSerializerSettings         = new JsonSerializerSettings(),
         AuthorizationHeaderValueGetter = () => Task.FromResult(AccessToken)
     });
 }
示例#2
0
 public OnedriveUser(string token)
 {
     RefeshToken = token;
     Api         = RestService.For <IMicrosoftGraphApi>(
         new HttpClient(new AuthenticatedHttpClientHandler(() => AccessToken))
     {
         BaseAddress = new Uri("https://graph.microsoft.com")
     }, new RefitSettings()
     {
         JsonSerializerSettings = new JsonSerializerSettings()
     });
 }
示例#3
0
 public AzureDirectoryProviderService(IMicrosoftGraphApi graphApi)
 {
     _graphApi = graphApi;
 }
示例#4
0
 public AzureDirectoryProviderService(IMicrosoftGraphApi graphApi, ILogger logger)
 {
     _graphApi = graphApi;
     _logger   = logger;
 }