コード例 #1
0
 /// <summary>
 /// Update the dsc node.  (see
 /// http://aka.ms/azureautomationsdk/dscnodeoperations for more
 /// information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Automation.IDscNodeOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group
 /// </param>
 /// <param name='automationAccount'>
 /// Required. The automation account name.
 /// </param>
 /// <param name='parameters'>
 /// Required. Parameters supplied to the patch dsc node.
 /// </param>
 /// <returns>
 /// The response model for the patch dsc node operation.
 /// </returns>
 public static Task<DscNodePatchResponse> PatchAsync(this IDscNodeOperations operations, string resourceGroupName, string automationAccount, DscNodePatchParameters parameters)
 {
     return operations.PatchAsync(resourceGroupName, automationAccount, parameters, CancellationToken.None);
 }
コード例 #2
0
 /// <summary>
 /// Update the dsc node.  (see
 /// http://aka.ms/azureautomationsdk/dscnodeoperations for more
 /// information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Automation.IDscNodeOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group
 /// </param>
 /// <param name='automationAccount'>
 /// Required. The automation account name.
 /// </param>
 /// <param name='parameters'>
 /// Required. Parameters supplied to the patch dsc node.
 /// </param>
 /// <returns>
 /// The response model for the patch dsc node operation.
 /// </returns>
 public static DscNodePatchResponse Patch(this IDscNodeOperations operations, string resourceGroupName, string automationAccount, DscNodePatchParameters parameters)
 {
     return Task.Factory.StartNew((object s) => 
     {
         return ((IDscNodeOperations)s).PatchAsync(resourceGroupName, automationAccount, parameters);
     }
     , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
 }