/// <summary>
 /// Delete the connection.  (see
 /// http://aka.ms/azureautomationsdk/connectionoperations for more
 /// information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.Automation.IConnectionOperations.
 /// </param>
 /// <param name='automationAccount'>
 /// Required. The automation account name.
 /// </param>
 /// <param name='connectionName'>
 /// Required. The name of connection.
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static Task <AzureOperationResponse> DeleteAsync(this IConnectionOperations operations, string automationAccount, string connectionName)
 {
     return(operations.DeleteAsync(automationAccount, connectionName, CancellationToken.None));
 }
예제 #2
0
 /// <summary>
 /// Delete the connection.
 /// <see href="http://aka.ms/azureautomationsdk/connectionoperations" />
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Name of an Azure Resource group.
 /// </param>
 /// <param name='automationAccountName'>
 /// The name of the automation account.
 /// </param>
 /// <param name='connectionName'>
 /// The name of connection.
 /// </param>
 public static void Delete(this IConnectionOperations operations, string resourceGroupName, string automationAccountName, string connectionName)
 {
     operations.DeleteAsync(resourceGroupName, automationAccountName, connectionName).GetAwaiter().GetResult();
 }