Esempio n. 1
0
        protected Logger()
        {
            var locker = new ReaderWriterLockSlim();

            _Reader  = new LoggerReadLockHelper(locker);
            _Writer  = new LoggerWriteLockHelper(locker);
            _Filters = new RwlsList <LogFilter>(_Reader, _Writer);
        }
Esempio n. 2
0
 public LoggerProxy(bool AllowClear = true, params Logger[] Masters)
 {
     _AllowClear = AllowClear;
     _Masters    = new RwlsList <Logger>(_Reader, _Writer);
     if (Masters?.Length > 0)
     {
         foreach (var master in Masters)
         {
             _Masters.Add(master);
         }
     }
 }