Example #1
0
 private void VerifyFollowerDatabase(FollowerDatabaseDefinition followerDatabaseDefinition, string attachedDatabaseConfigurationName, string databaseName, string clusterResourceId)
 {
     Assert.NotNull(followerDatabaseDefinition);
     Assert.Equal(followerDatabaseDefinition.AttachedDatabaseConfigurationName, attachedDatabaseConfigurationName);
     Assert.Equal(followerDatabaseDefinition.DatabaseName, databaseName);
     Assert.Equal(followerDatabaseDefinition.ClusterResourceId, clusterResourceId);
 }
 /// <summary>
 /// Detaches all followers of a database owned by this cluster.
 /// </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='followerDatabaseToRemove'>
 /// The follower databases properties to remove.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task BeginDetachFollowerDatabasesAsync(this IClustersOperations operations, string resourceGroupName, string clusterName, FollowerDatabaseDefinition followerDatabaseToRemove, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.BeginDetachFollowerDatabasesWithHttpMessagesAsync(resourceGroupName, clusterName, followerDatabaseToRemove, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
 /// <summary>
 /// Detaches all followers of a database owned by this cluster.
 /// </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='followerDatabaseToRemove'>
 /// The follower databases properties to remove.
 /// </param>
 public static void BeginDetachFollowerDatabases(this IClustersOperations operations, string resourceGroupName, string clusterName, FollowerDatabaseDefinition followerDatabaseToRemove)
 {
     operations.BeginDetachFollowerDatabasesAsync(resourceGroupName, clusterName, followerDatabaseToRemove).GetAwaiter().GetResult();
 }