protected Logger() { var locker = new ReaderWriterLockSlim(); _Reader = new LoggerReadLockHelper(locker); _Writer = new LoggerWriteLockHelper(locker); _Filters = new RwlsList <LogFilter>(_Reader, _Writer); }
public RwlsList(LoggerReadLockHelper reader, LoggerWriteLockHelper writer) { _Reader = reader ?? throw new ArgumentNullException(nameof(reader)); _Writer = writer ?? throw new ArgumentNullException(nameof(writer)); }