internal void AttachObserver(ILogLevelObserver observer) { lock (_loglevelObserverList) { _loglevelObserverList.Add(observer); } }
internal void DetachObserver(ILogLevelObserver observer) { lock (_loglevelObserverList) { while (_loglevelObserverList.Remove(observer)) { // Remove returns true, if it could remove. // -> Remove all } } }