/// <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); } }
/// <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()); }
public virtual Response <ComputeNode> Get(string poolId, string nodeId, ComputeNodeGetOptions computeNodeGetOptions, CancellationToken cancellationToken = default) { return(RestClient.Get(poolId, nodeId, computeNodeGetOptions, cancellationToken)); }
/// <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()); }
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)); }