Example #1
0
    public async Task DisposeAsync()
    {
        await _session.DisposeAsync();

        await _client.DisposeAsync();

        await _harness.DisposeAsync();
    }
Example #2
0
    public async ValueTask DisposeAsync()
    {
        await _client.DisposeAsync();

        if (_disposeMiniCluster)
        {
            await _miniCluster.DisposeAsync();
        }
    }
Example #3
0
    public async Task DisposeAsync()
    {
        if (_client is not null)
        {
            await _client.DisposeAsync();
        }

        if (_newClient is not null)
        {
            await _newClient.DisposeAsync();
        }

        await _harness.DisposeAsync();
    }