/// <summary> /// The Get Storage Account Properties operation returns system /// properties for the specified storage account. (see /// http://msdn.microsoft.com/en-us/library/windowsazure/ee460802.aspx /// for more information) /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.Storage.IStorageAccountOperations. /// </param> /// <param name='accountName'> /// Name of the storage account to get. /// </param> /// <returns> /// The Get Storage Account Properties operation response. /// </returns> public static StorageAccountGetResponse Get(this IStorageAccountOperations operations, string accountName) { try { return(operations.GetAsync(accountName).Result); } catch (AggregateException ex) { if (ex.InnerExceptions.Count > 1) { throw; } else { throw ex.InnerException; } } }
/// <summary> /// The Get Storage Account Properties operation returns system /// properties for the specified storage account. (see /// http://msdn.microsoft.com/en-us/library/windowsazure/ee460802.aspx /// for more information) /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.Storage.IStorageAccountOperations. /// </param> /// <param name='accountName'> /// Required. Name of the storage account to get properties for. /// </param> /// <returns> /// The Get Storage Account Properties operation response. /// </returns> public static Task <StorageAccountGetResponse> GetAsync(this IStorageAccountOperations operations, string accountName) { return(operations.GetAsync(accountName, CancellationToken.None)); }