示例#1
0
 /// <summary>
 ///
 /// </summary>
 public void Clear()
 {
     lock (_syncRoot)
     {
         _storage.Clear();
     }
 }
示例#2
0
        /// <inheritdoc />
        public void Dispose()
        {
            // https://github.com/Kittyfisto/Tailviewer/issues/282
            _listeners.Clear();
            _properties.Clear();

            lock (_syncRoot)
            {
                _logBuffer.Clear();
            }
        }
示例#3
0
        protected override void DisposeAdditional()
        {
            lock (_syncRoot)
            {
                _entries.Clear();

                _localProperties.Clear();
                _properties.Clear();
            }

            base.DisposeAdditional();
        }
示例#4
0
        /// <inheritdoc />
        protected override void DisposeAdditional()
        {
            _source.RemoveListener(this);

            // https://github.com/Kittyfisto/Tailviewer/issues/282
            lock (_indices)
            {
                _indices.Clear();
                _indices.Capacity = 0;
            }

            _properties.Clear();
            _propertiesBuffer.Clear();
        }