public void Dispose() { if (socketReader_ != null) { socketReader_.Dispose(); socketReader_ = null; } if (log_ != null) { log_.Dispose(); log_ = null; } }
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; }