/// <summary> /// Retrieve a list of dsc node configurations. (see /// http://aka.ms/azureautomationsdk/dscnodeconfigurations for more /// information) /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Automation.IDscNodeConfigurationOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the resource group /// </param> /// <param name='automationAccount'> /// Required. The automation account name. /// </param> /// <param name='parameters'> /// Optional. The parameters supplied to the list operation. /// </param> /// <returns> /// The response model for the list job operation. /// </returns> public static Task<DscNodeConfigurationListResponse> ListAsync(this IDscNodeConfigurationOperations operations, string resourceGroupName, string automationAccount, DscNodeConfigurationListParameters parameters) { return operations.ListAsync(resourceGroupName, automationAccount, parameters, CancellationToken.None); }
/// <summary> /// Retrieve a list of dsc node configurations. (see /// http://aka.ms/azureautomationsdk/dscnodeconfigurations for more /// information) /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Automation.IDscNodeConfigurationOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the resource group /// </param> /// <param name='automationAccount'> /// Required. The automation account name. /// </param> /// <param name='parameters'> /// Optional. The parameters supplied to the list operation. /// </param> /// <returns> /// The response model for the list job operation. /// </returns> public static DscNodeConfigurationListResponse List(this IDscNodeConfigurationOperations operations, string resourceGroupName, string automationAccount, DscNodeConfigurationListParameters parameters) { return Task.Factory.StartNew((object s) => { return ((IDscNodeConfigurationOperations)s).ListAsync(resourceGroupName, automationAccount, parameters); } , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); }