public static GetApi ( ) : |
||
return |
protected async Task <ACD.IAmazonDrive> GetApi() { if (_api == null) { _api = AmazonDriveHelper.GetApi(); var isOk = await _api.AuthenticationByTokens(null, this.account.Secret, DateTime.Now); if (!isOk) { throw new InvalidOperationException("Authentication to Amazon Drive failed."); } } return(_api); }
public AmazonDriveStorageConfigurator() { _api = AmazonDriveHelper.GetApi(); _api.OnTokenUpdate = this; }