/// <summary> /// Checks that the Event Hub data connection parameters are valid. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group containing the Kusto cluster. /// </param> /// <param name='clusterName'> /// The name of the Kusto cluster. /// </param> /// <param name='databaseName'> /// The name of the database in the Kusto cluster. /// </param> /// <param name='parameters'> /// The Event Hub connection parameters supplied to the CreateOrUpdate /// operation. /// </param> public static EventHubConnectionValidationListResult EventhubConnectionValidation(this IEventHubConnectionsOperations operations, string resourceGroupName, string clusterName, string databaseName, EventHubConnectionValidation parameters) { return(operations.EventhubConnectionValidationAsync(resourceGroupName, clusterName, databaseName, parameters).GetAwaiter().GetResult()); }
/// <summary> /// Checks that the Event Hub data connection parameters are valid. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group containing the Kusto cluster. /// </param> /// <param name='clusterName'> /// The name of the Kusto cluster. /// </param> /// <param name='databaseName'> /// The name of the database in the Kusto cluster. /// </param> /// <param name='parameters'> /// The Event Hub connection parameters supplied to the CreateOrUpdate /// operation. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <EventHubConnectionValidationListResult> EventhubConnectionValidationAsync(this IEventHubConnectionsOperations operations, string resourceGroupName, string clusterName, string databaseName, EventHubConnectionValidation parameters, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.EventhubConnectionValidationWithHttpMessagesAsync(resourceGroupName, clusterName, databaseName, parameters, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }