Пример #1
0
        protected Logger()
        {
            var locker = new ReaderWriterLockSlim();

            _Reader  = new LoggerReadLockHelper(locker);
            _Writer  = new LoggerWriteLockHelper(locker);
            _Filters = new RwlsList <LogFilter>(_Reader, _Writer);
        }
Пример #2
0
 public RwlsList(LoggerReadLockHelper reader, LoggerWriteLockHelper writer)
 {
     _Reader = reader ?? throw new ArgumentNullException(nameof(reader));
     _Writer = writer ?? throw new ArgumentNullException(nameof(writer));
 }