예제 #1
0
    /// <summary>
    /// Helper method to easily kill the leader master.
    /// </summary>
    /// <returns>The host and port of the detected leader master.</returns>
    public async Task <HostAndPort> KillLeaderMasterServerAsync()
    {
        var hostPort = await _client.FindLeaderMasterServerAsync();

        await _miniCluster.KillMasterServerAsync(hostPort);

        return(hostPort);
    }