/// <summary> /// Updates a Event Hub connection. /// </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='eventHubConnectionName'> /// The name of the event hub connection. /// </param> /// <param name='parameters'> /// The Event Hub connection parameters supplied to the Update operation. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <EventHubConnection> BeginUpdateAsync(this IEventHubConnectionsOperations operations, string resourceGroupName, string clusterName, string databaseName, string eventHubConnectionName, EventHubConnectionUpdate parameters, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(resourceGroupName, clusterName, databaseName, eventHubConnectionName, parameters, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Updates a Event Hub connection. /// </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='eventHubConnectionName'> /// The name of the event hub connection. /// </param> /// <param name='parameters'> /// The Event Hub connection parameters supplied to the Update operation. /// </param> public static EventHubConnection BeginUpdate(this IEventHubConnectionsOperations operations, string resourceGroupName, string clusterName, string databaseName, string eventHubConnectionName, EventHubConnectionUpdate parameters) { return(operations.BeginUpdateAsync(resourceGroupName, clusterName, databaseName, eventHubConnectionName, parameters).GetAwaiter().GetResult()); }