SalimAzureBlobAPI/SalimAzureAPI/AzureBlob/BlobService.cs
/// <summary>
/// Gets the azure BLOB storage account container.
/// </summary>
/// <param name="azureAppSettings">The azure application settings.</param>
Gets the azure BLOB storage account container.
Gets the azure BLOB storage account container .
private void GetAzureBlobStorageAccountContainer(IOptions<AzureBlobSettings> azureAppSettings)
        {
            AzureBlobSettings appSettings = azureAppSettings.Value;
            _blobContainerName = appSettings.BlobContainerName;
            CloudStorageAccount storageAccount = CloudStorageAccount.Parse(appSettings.AzureBlobConnectionString);
            _blobClient = storageAccount.CreateCloudBlobClient();
            _blobFileDownloadLocation = appSettings.BlobFileDownloadLocation;
        }
private void GetAzureBlobStorageAccountContainer ( IOptions < AzureBlobSettings > azureAppSettings ) { AzureBlobSettings appSettings = azureAppSettings . Value ; _blobContainerName = appSettings . BlobContainerName ; CloudStorageAccount storageAccount = CloudStorageAccount . Parse ( appSettings . AzureBlobConnectionString ) ; _blobClient = storageAccount . CreateCloudBlobClient ( ) ; _blobFileDownloadLocation = appSettings . BlobFileDownloadLocation ; }
Gets the azure BLOB storage account container.
Gets the azure BLOB storage account container .
// Validates the connection string information in app.config and throws an exception if it looks like  // Retrieve storage account information from connection string // Create a blob client for interacting with the blob service. //get filedownload location
azureAppSettings
IOptions<AzureBlobSettings>
The azure application settings.
The azure application settings .