public async Task DisconnectAsync() { if (_channel != null) { await _channelFactory.DisposeAsync(_channel); } }
public async Task DisconnectAsync() { _cts.Cancel(); _call?.Dispose(); if (_channel != null) { await _channelFactory.DisposeAsync(_channel); } }