/// <summary>
 /// Gets the settings required for remote login to a compute node.
 /// </summary>
 /// <remarks>
 /// Before you can remotely login to a node using the remote login settings,
 /// you must create a user account on the node. This API can be invoked only on
 /// pools created with the virtual machine configuration property. For pools
 /// created with a cloud service configuration, see the GetRemoteDesktop API.
 /// </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 for which to obtain the remote login settings.
 /// </param>
 /// <param name='computeNodeGetRemoteLoginSettingsOptions'>
 /// Additional parameters for the operation
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ComputeNodeGetRemoteLoginSettingsResult> GetRemoteLoginSettingsAsync(this IComputeNodeOperations operations, string poolId, string nodeId, ComputeNodeGetRemoteLoginSettingsOptions computeNodeGetRemoteLoginSettingsOptions = default(ComputeNodeGetRemoteLoginSettingsOptions), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetRemoteLoginSettingsWithHttpMessagesAsync(poolId, nodeId, computeNodeGetRemoteLoginSettingsOptions, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Gets the settings required for remote login to a compute node.
 /// </summary>
 /// <remarks>
 /// Before you can remotely login to a node using the remote login settings,
 /// you must create a user account on the node. This API can be invoked only on
 /// pools created with the virtual machine configuration property. For pools
 /// created with a cloud service configuration, see the GetRemoteDesktop API.
 /// </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 for which to obtain the remote login settings.
 /// </param>
 /// <param name='computeNodeGetRemoteLoginSettingsOptions'>
 /// Additional parameters for the operation
 /// </param>
 public static ComputeNodeGetRemoteLoginSettingsResult GetRemoteLoginSettings(this IComputeNodeOperations operations, string poolId, string nodeId, ComputeNodeGetRemoteLoginSettingsOptions computeNodeGetRemoteLoginSettingsOptions = default(ComputeNodeGetRemoteLoginSettingsOptions))
 {
     return(operations.GetRemoteLoginSettingsAsync(poolId, nodeId, computeNodeGetRemoteLoginSettingsOptions).GetAwaiter().GetResult());
 }
Exemplo n.º 3
0
 public virtual Response <ComputeNodeGetRemoteLoginSettingsResult> GetRemoteLoginSettings(string poolId, string nodeId, ComputeNodeGetRemoteLoginSettingsOptions computeNodeGetRemoteLoginSettingsOptions, CancellationToken cancellationToken = default)
 {
     return(RestClient.GetRemoteLoginSettings(poolId, nodeId, computeNodeGetRemoteLoginSettingsOptions, cancellationToken));
 }
 /// <summary>
 /// Gets the settings required for remote login to a 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 for which to obtain the remote login settings.
 /// </param>
 /// <param name='computeNodeGetRemoteLoginSettingsOptions'>
 /// Additional parameters for the operation
 /// </param>
 public static ComputeNodeGetRemoteLoginSettingsResult GetRemoteLoginSettings(this IComputeNodeOperations operations, string poolId, string nodeId, ComputeNodeGetRemoteLoginSettingsOptions computeNodeGetRemoteLoginSettingsOptions = default(ComputeNodeGetRemoteLoginSettingsOptions))
 {
     return(System.Threading.Tasks.Task.Factory.StartNew(s => ((IComputeNodeOperations)s).GetRemoteLoginSettingsAsync(poolId, nodeId, computeNodeGetRemoteLoginSettingsOptions), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
Exemplo n.º 5
0
 public virtual async Task <Response <ComputeNodeGetRemoteLoginSettingsResult> > GetRemoteLoginSettingsAsync(string poolId, string nodeId, ComputeNodeGetRemoteLoginSettingsOptions computeNodeGetRemoteLoginSettingsOptions, CancellationToken cancellationToken = default)
 {
     return(await RestClient.GetRemoteLoginSettingsAsync(poolId, nodeId, computeNodeGetRemoteLoginSettingsOptions, cancellationToken).ConfigureAwait(false));
 }