/// <summary>
 /// Initialize a new instance of the <see cref="OneDriveProvider"/> class.
 /// </summary>
 /// <param name="tokenProvider">An object implementing <see cref="ICloudTokenProvider"/> used to get and set the tokens for this storage provider.</param>
 public OneDriveProvider(ICloudTokenProvider tokenProvider)
 {
     Requires.NotNull(tokenProvider, nameof(tokenProvider));
     TokenProvider = tokenProvider;
     _clientId     = SecurityHelper.DecryptString(TokenProvider.GetToken("ClientID"));
     _redirectUri  = SecurityHelper.DecryptString(TokenProvider.GetToken("RedirectUri"));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initialize a new instance of the <see cref="OneDriveProvider"/> class.
 /// </summary>
 /// <param name="tokenProvider">An object implementing <see cref="ICloudTokenProvider"/> used to get and set the tokens for this storage provider.</param>
 public DropBoxProvider(ICloudTokenProvider tokenProvider)
 {
     Requires.NotNull(tokenProvider, nameof(tokenProvider));
     TokenProvider = tokenProvider;
     _appKey       = SecurityHelper.DecryptString(TokenProvider.GetToken("AppKey"));
     _redirectUri  = SecurityHelper.DecryptString(TokenProvider.GetToken("RedirectUri"));
 }