public async ValueTask DisposeAsync() { if (_dataReader != null) { await _dataReader.DisposeAsync().ConfigureAwait(false); foreach (var dataReader in _resultCoordinator.DataReaders) { if (dataReader != null) { await dataReader.DataReader.DisposeAsync().ConfigureAwait(false); } } _resultCoordinator.DataReaders.Clear(); _dataReader = null; } }
public ValueTask DisposeAsync() { return(_dataReader.DisposeAsync()); }