コード例 #1
0
 /// <summary>
 /// Gets information about 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 that you want to get information about.
 /// </param>
 /// <param name='computeNodeGetOptions'>
 /// Additional parameters for the operation
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ComputeNode> GetAsync(this IComputeNodeOperations operations, string poolId, string nodeId, ComputeNodeGetOptions computeNodeGetOptions = default(ComputeNodeGetOptions), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(poolId, nodeId, computeNodeGetOptions, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
コード例 #2
0
 /// <summary>
 /// Gets information about 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 that you want to get information about.
 /// </param>
 /// <param name='computeNodeGetOptions'>
 /// Additional parameters for the operation
 /// </param>
 public static ComputeNode Get(this IComputeNodeOperations operations, string poolId, string nodeId, ComputeNodeGetOptions computeNodeGetOptions = default(ComputeNodeGetOptions))
 {
     return(operations.GetAsync(poolId, nodeId, computeNodeGetOptions).GetAwaiter().GetResult());
 }
コード例 #3
0
 public virtual Response <ComputeNode> Get(string poolId, string nodeId, ComputeNodeGetOptions computeNodeGetOptions, CancellationToken cancellationToken = default)
 {
     return(RestClient.Get(poolId, nodeId, computeNodeGetOptions, cancellationToken));
 }
コード例 #4
0
 /// <summary>
 /// Gets information about 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 that you want to get information about.
 /// </param>
 /// <param name='computeNodeGetOptions'>
 /// Additional parameters for the operation
 /// </param>
 public static ComputeNode Get(this IComputeNodeOperations operations, string poolId, string nodeId, ComputeNodeGetOptions computeNodeGetOptions = default(ComputeNodeGetOptions))
 {
     return(System.Threading.Tasks.Task.Factory.StartNew(s => ((IComputeNodeOperations)s).GetAsync(poolId, nodeId, computeNodeGetOptions), 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 <ComputeNode> > GetAsync(string poolId, string nodeId, ComputeNodeGetOptions computeNodeGetOptions, CancellationToken cancellationToken = default)
 {
     return(await RestClient.GetAsync(poolId, nodeId, computeNodeGetOptions, cancellationToken).ConfigureAwait(false));
 }