コード例 #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;
 }