/// <summary>
 /// Enables task scheduling on the specified compute node.
 /// </summary>
 /// <remarks>
 /// You can enable task scheduling on a node only if its current scheduling
 /// state is disabled
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='poolId'>
 /// The ID of the pool that contains the compute node.
 /// </param>
 /// <param name='nodeId'>
 /// The ID of the compute node on which you want to enable task scheduling.
 /// </param>
 /// <param name='computeNodeEnableSchedulingOptions'>
 /// Additional parameters for the operation
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ComputeNodeEnableSchedulingHeaders> EnableSchedulingAsync(this IComputeNodeOperations operations, string poolId, string nodeId, ComputeNodeEnableSchedulingOptions computeNodeEnableSchedulingOptions = default(ComputeNodeEnableSchedulingOptions), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.EnableSchedulingWithHttpMessagesAsync(poolId, nodeId, computeNodeEnableSchedulingOptions, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Headers);
     }
 }
 /// <summary>
 /// Enables task scheduling on the specified compute node.
 /// </summary>
 /// <remarks>
 /// You can enable task scheduling on a node only if its current scheduling
 /// state is disabled
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='poolId'>
 /// The ID of the pool that contains the compute node.
 /// </param>
 /// <param name='nodeId'>
 /// The ID of the compute node on which you want to enable task scheduling.
 /// </param>
 /// <param name='computeNodeEnableSchedulingOptions'>
 /// Additional parameters for the operation
 /// </param>
 public static ComputeNodeEnableSchedulingHeaders EnableScheduling(this IComputeNodeOperations operations, string poolId, string nodeId, ComputeNodeEnableSchedulingOptions computeNodeEnableSchedulingOptions = default(ComputeNodeEnableSchedulingOptions))
 {
     return(operations.EnableSchedulingAsync(poolId, nodeId, computeNodeEnableSchedulingOptions).GetAwaiter().GetResult());
 }
예제 #3
0
 public virtual Response EnableScheduling(string poolId, string nodeId, ComputeNodeEnableSchedulingOptions computeNodeEnableSchedulingOptions, CancellationToken cancellationToken = default)
 {
     return(RestClient.EnableScheduling(poolId, nodeId, computeNodeEnableSchedulingOptions, cancellationToken).GetRawResponse());
 }
 /// <summary>
 /// Enables task scheduling on the specified compute node.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='poolId'>
 /// The id of the pool that contains the compute node.
 /// </param>
 /// <param name='nodeId'>
 /// The id of the compute node on which you want to enable task scheduling.
 /// </param>
 /// <param name='computeNodeEnableSchedulingOptions'>
 /// Additional parameters for the operation
 /// </param>
 public static ComputeNodeEnableSchedulingHeaders EnableScheduling(this IComputeNodeOperations operations, string poolId, string nodeId, ComputeNodeEnableSchedulingOptions computeNodeEnableSchedulingOptions = default(ComputeNodeEnableSchedulingOptions))
 {
     return(System.Threading.Tasks.Task.Factory.StartNew(s => ((IComputeNodeOperations)s).EnableSchedulingAsync(poolId, nodeId, computeNodeEnableSchedulingOptions), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
예제 #5
0
 public virtual async Task <Response> EnableSchedulingAsync(string poolId, string nodeId, ComputeNodeEnableSchedulingOptions computeNodeEnableSchedulingOptions, CancellationToken cancellationToken = default)
 {
     return((await RestClient.EnableSchedulingAsync(poolId, nodeId, computeNodeEnableSchedulingOptions, cancellationToken).ConfigureAwait(false)).GetRawResponse());
 }