/// <summary> /// Gets lifetime summary statistics for all of the pools in the specified /// account. /// </summary> /// <remarks> /// Statistics are aggregated across all pools that have ever existed in the /// account, from account creation to the last update time of the statistics. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='poolGetAllPoolsLifetimeStatisticsOptions'> /// Additional parameters for the operation /// </param> public static PoolStatistics GetAllPoolsLifetimeStatistics(this IPoolOperations operations, PoolGetAllPoolsLifetimeStatisticsOptions poolGetAllPoolsLifetimeStatisticsOptions = default(PoolGetAllPoolsLifetimeStatisticsOptions)) { return(System.Threading.Tasks.Task.Factory.StartNew(s => ((IPoolOperations)s).GetAllPoolsLifetimeStatisticsAsync(poolGetAllPoolsLifetimeStatisticsOptions), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <summary> /// Gets lifetime summary statistics for all of the pools in the specified /// account. /// </summary> /// <remarks> /// Statistics are aggregated across all pools that have ever existed in the /// account, from account creation to the last update time of the statistics. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='poolGetAllPoolsLifetimeStatisticsOptions'> /// Additional parameters for the operation /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async System.Threading.Tasks.Task <PoolStatistics> GetAllPoolsLifetimeStatisticsAsync(this IPoolOperations operations, PoolGetAllPoolsLifetimeStatisticsOptions poolGetAllPoolsLifetimeStatisticsOptions = default(PoolGetAllPoolsLifetimeStatisticsOptions), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { using (var _result = await operations.GetAllPoolsLifetimeStatisticsWithHttpMessagesAsync(poolGetAllPoolsLifetimeStatisticsOptions, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }