public OneDriveServerSyncProvider(IConfigurationRetriever configurationRetriever, IOneDriveApi oneDriveApi, ILiveAuthenticationApi liveAuthenticationApi, IHttpClient httpClient, ILogManager logManager)
 {
     _configurationRetriever = configurationRetriever;
     _oneDriveApi = oneDriveApi;
     _liveAuthenticationApi = liveAuthenticationApi;
     _httpClient = httpClient;
     _logger = logManager.GetLogger("OneDrive");
 }
示例#2
0
 public OneDriveServerSyncProvider(IConfigurationRetriever configurationRetriever, IOneDriveApi oneDriveApi, ILiveAuthenticationApi liveAuthenticationApi, IHttpClient httpClient, ILogManager logManager)
 {
     _configurationRetriever = configurationRetriever;
     _oneDriveApi            = oneDriveApi;
     _liveAuthenticationApi  = liveAuthenticationApi;
     _httpClient             = httpClient;
     _logger = logManager.GetLogger("OneDrive");
 }
        public OneDriveCredentials(IConfigurationRetriever configurationRetriever, ILiveAuthenticationApi liveAuthenticationApi, SyncTarget target)
        {
            _configurationRetriever = configurationRetriever;
            _liveAuthenticationApi = liveAuthenticationApi;
            _syncAccountId = target.Id;

            var syncAccount = configurationRetriever.GetSyncAccount(target.Id);
            _accessToken = syncAccount.AccessToken;
        }
        public OneDriveCredentials(IConfigurationRetriever configurationRetriever, ILiveAuthenticationApi liveAuthenticationApi, SyncTarget target)
        {
            _configurationRetriever = configurationRetriever;
            _liveAuthenticationApi  = liveAuthenticationApi;
            _syncAccountId          = target.Id;

            var syncAccount = configurationRetriever.GetSyncAccount(target.Id);

            _accessToken = syncAccount.AccessToken;
        }
 public OneDriveRestfulService(IConfigurationRetriever configurationRetriever, ILiveAuthenticationApi liveAuthenticationApi)
 {
     _configurationRetriever = configurationRetriever;
     _liveAuthenticationApi  = liveAuthenticationApi;
 }
 public OneDriveRestfulService(IConfigurationRetriever configurationRetriever, ILiveAuthenticationApi liveAuthenticationApi)
 {
     _configurationRetriever = configurationRetriever;
     _liveAuthenticationApi = liveAuthenticationApi;
 }