Beispiel #1
0
        public DsmsAzureBlobRecoveryPointStore(Model.DsmsAzureBlobBackupStorageInfo dsmsAzureBlobStoreInformation) : base(dsmsAzureBlobStoreInformation)
        {
            this._storeInformation = dsmsAzureBlobStoreInformation;
            this.InitializeDsmsStorageHelper(this._storeInformation.StorageCredentialsSourceLocation);
            CloudStorageAccount cloudStorageAccount = (CloudStorageAccount)this.getStorageAccountMethodInfo.Invoke(this.dsmsStorageHelper, null);

            this.container = AzureBlobStoreHelper.GetContainer(cloudStorageAccount, this._storeInformation.ContainerName);
        }
Beispiel #2
0
        public AzureBlobRecoveryPointStore(Model.AzureBlobBackupStorageInfo azureBlobStoreInformation) : base(azureBlobStoreInformation)
        {
            this._storeInformation = azureBlobStoreInformation;

            if (azureBlobStoreInformation.IsConnectionStringEncrypted)
            {
                using (var secureString = EncryptionUtility.DecryptText(azureBlobStoreInformation.ConnectionString))
                {
                    this.container = AzureBlobStoreHelper.GetContainer(UtilityHelper.ConvertToUnsecureString(secureString), this._storeInformation.ContainerName);
                }
            }
            else
            {
                this.container = AzureBlobStoreHelper.GetContainer(this._storeInformation.ConnectionString, this._storeInformation.ContainerName);
            }
        }