/// <summary> /// Check if a provisioning service name is available. /// </summary> /// <remarks> /// Check if a provisioning service name is available. This will validate if /// the name is syntactically valid and if the name is usable /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='arguments'> /// Set the name parameter in the OperationInputs structure to the name of the /// provisioning service to check. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <NameAvailabilityInfo> CheckProvisioningServiceNameAvailabilityAsync(this IIotDpsResourceOperations operations, OperationInputs arguments, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CheckProvisioningServiceNameAvailabilityWithHttpMessagesAsync(arguments, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }