public void Dispose() { if (!_initialized) { return; } _producerBlocks?.Dispose(); _producerTransactions?.Dispose(); _serdeProvider?.Dispose(); }
protected virtual void Dispose(bool disposing) { if (!_isDisposed) { if (disposing) { _serdeProvider.Dispose(); _consumer.Dispose(); } _isDisposed = true; } }