Пример #1
0
        public void Dispose()
        {
            if (!_initialized)
            {
                return;
            }

            _producerBlocks?.Dispose();
            _producerTransactions?.Dispose();
            _serdeProvider?.Dispose();
        }
Пример #2
0
        protected virtual void Dispose(bool disposing)
        {
            if (!_isDisposed)
            {
                if (disposing)
                {
                    _serdeProvider.Dispose();
                    _consumer.Dispose();
                }

                _isDisposed = true;
            }
        }