Exemple #1
0
        public void Dispose()
        {
            if (socketReader_ != null)
            {
                socketReader_.Dispose();
                socketReader_ = null;
            }

            if (log_ != null)
            {
                log_.Dispose();
                log_ = null;
            }
        }
Exemple #2
0
        protected virtual void Dispose(bool disposing)
        {
            if (_disposed)
            {
                return;
            }
            if (disposing)
            {
                if (socketReader_ != null)
                {
                    socketReader_.Dispose();
                    socketReader_ = null;
                }

                if (log_ != null)
                {
                    log_.Dispose();
                    log_ = null;
                }
            }
            _disposed = true;
        }