/// <summary> /// Delete the Provisioning Service /// </summary> /// <remarks> /// Deletes the Provisioning Service. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='provisioningServiceName'> /// Name of provisioning service to delete. /// </param> /// <param name='resourceGroupName'> /// Resource group identifier. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task DeleteAsync(this IIotDpsResourceOperations operations, string provisioningServiceName, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.DeleteWithHttpMessagesAsync(provisioningServiceName, resourceGroupName, null, cancellationToken).ConfigureAwait(false)).Dispose(); }