public virtual Response DisableAutoScale(string poolId, PoolDisableAutoScaleOptions poolDisableAutoScaleOptions, CancellationToken cancellationToken = default)
 {
     return(RestClient.DisableAutoScale(poolId, poolDisableAutoScaleOptions, cancellationToken).GetRawResponse());
 }
 public virtual async Task <Response> DisableAutoScaleAsync(string poolId, PoolDisableAutoScaleOptions poolDisableAutoScaleOptions, CancellationToken cancellationToken = default)
 {
     return((await RestClient.DisableAutoScaleAsync(poolId, poolDisableAutoScaleOptions, cancellationToken).ConfigureAwait(false)).GetRawResponse());
 }
示例#3
0
 /// <summary>
 /// Disables automatic scaling for a Pool.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='poolId'>
 /// The ID of the Pool on which to disable automatic scaling.
 /// </param>
 /// <param name='poolDisableAutoScaleOptions'>
 /// Additional parameters for the operation
 /// </param>
 public static PoolDisableAutoScaleHeaders DisableAutoScale(this IPoolOperations operations, string poolId, PoolDisableAutoScaleOptions poolDisableAutoScaleOptions = default(PoolDisableAutoScaleOptions))
 {
     return(operations.DisableAutoScaleAsync(poolId, poolDisableAutoScaleOptions).GetAwaiter().GetResult());
 }
示例#4
0
 /// <summary>
 /// Disables automatic scaling for a Pool.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='poolId'>
 /// The ID of the Pool on which to disable automatic scaling.
 /// </param>
 /// <param name='poolDisableAutoScaleOptions'>
 /// Additional parameters for the operation
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <PoolDisableAutoScaleHeaders> DisableAutoScaleAsync(this IPoolOperations operations, string poolId, PoolDisableAutoScaleOptions poolDisableAutoScaleOptions = default(PoolDisableAutoScaleOptions), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.DisableAutoScaleWithHttpMessagesAsync(poolId, poolDisableAutoScaleOptions, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Headers);
     }
 }
 /// <summary>
 /// Disables automatic scaling for a pool.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='poolId'>
 /// The id of the pool on which to disable automatic scaling.
 /// </param>
 /// <param name='poolDisableAutoScaleOptions'>
 /// Additional parameters for the operation
 /// </param>
 public static PoolDisableAutoScaleHeaders DisableAutoScale(this IPoolOperations operations, string poolId, PoolDisableAutoScaleOptions poolDisableAutoScaleOptions = default(PoolDisableAutoScaleOptions))
 {
     return(System.Threading.Tasks.Task.Factory.StartNew(s => ((IPoolOperations)s).DisableAutoScaleAsync(poolId, poolDisableAutoScaleOptions), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }