Example #1
0
        /// <summary>
        ///     Initializes this object.
        /// </summary>
        /// <param name="columns"></param>
        public InMemoryLogFile(IEnumerable <ILogFileColumn> columns)
        {
            if (columns == null)
            {
                throw new ArgumentNullException(nameof(columns));
            }

            _syncRoot   = new object();
            _logEntries = new LogEntryList(LogFileColumns.CombineWithMinimum(columns));
            _listeners  = new LogFileListenerCollection(this);

            _properties = new LogFilePropertyList(LogFileProperties.Minimum);
            _properties.SetValue(LogFileProperties.Size, Size.Zero);
        }
Example #2
0
 public LogEntryAccessor(LogEntryList list, int index)
 {
     _list  = list;
     _index = index;
 }