public static void UnregisterListener(ILoggerListener listener) { if (listener == null) { throw new ArgumentNullException(nameof(listener)); } listener.Dispose(); _listeners = _listeners.Remove(listener); }
public void RemoveListener(ILoggerListener listener) { if (listener == null) { throw new ArgumentNullException(nameof(listener)); } lock (_sync) { listener.Dispose(); // prevent marshal listener. _listeners.RemoveAll(l => listener.Equals(l)); } }
public static void UnregisterListener(ILoggerListener listener) { if (listener == null) throw new ArgumentNullException(nameof(listener)); listener.Dispose(); _listeners = _listeners.Remove(listener); }
public static void RemoveListener(ILoggerListener listener) { CheckInitialization(); listener.Dispose(); Instance._listeners.Remove(listener); }
public void Dispose() { _innerListener.Dispose(); }