public bool RemoveListener(ILogTableListener listener) { lock (_syncRoot) { return _notifiers.Remove(listener); } }
public bool RemoveListener(ILogTableListener listener) { lock (_syncRoot) { return(_notifiers.Remove(listener)); } }
public void AddListener(ILogTableListener listener, TimeSpan maximumWaitTime, int maximumLineCount) { lock (_syncRoot) { var notifier = new LogFileListenerNotifier(_logTable, listener, maximumWaitTime, maximumLineCount); _notifiers.Add(listener, notifier); } }
public LogFileListenerNotifier(ILogTable logTable, ILogTableListener listener, TimeSpan maximumWaitTime, int maximumLineCount) { if (logTable == null) throw new ArgumentNullException("logTable"); _logTable = logTable; _listener = listener; _maximumWaitTime = maximumWaitTime; _maximumLineCount = maximumLineCount; }
public void AddListener(ILogTableListener listener, TimeSpan maximumWaitTime, int maximumLineCount) { lock (_syncRoot) { if (!_notifiers.ContainsKey(listener)) { var notifier = new LogTableListenerNotifier(_logTable, listener, maximumWaitTime, maximumLineCount); _notifiers.Add(listener, notifier); notifier.OnRead(_currentEntryIndex); } } }
public LogTableListenerNotifier(ILogTable logTable, ILogTableListener listener, TimeSpan maximumTime, int maximumCount) { if (logTable == null) { throw new ArgumentNullException(nameof(logTable)); } _logTable = logTable; _listener = listener; _maximumTime = maximumTime; _maximumCount = maximumCount; Reset(); _listener.OnLogTableModified(logTable, LogTableModification.Reset); }
/// <inheritdoc /> public bool RemoveListener(ILogTableListener listener) { return(_listeners.RemoveListener(listener)); }
/// <inheritdoc /> public void AddListener(ILogTableListener listener, TimeSpan maximumWaitTime, int maximumLineCount) { _listeners.AddListener(listener, maximumWaitTime, maximumLineCount); }
public bool RemoveListener(ILogTableListener listener) { throw new NotImplementedException(); }
public void AddListener(ILogTableListener listener, TimeSpan maximumWaitTime, int maximumLineCount) { throw new NotImplementedException(); }
/// <inheritdoc /> public bool RemoveListener(ILogTableListener listener) { throw new NotImplementedException(); }
/// <inheritdoc /> public void AddListener(ILogTableListener listener, TimeSpan maximumWaitTime, int maximumLineCount) { throw new NotImplementedException(); }
public void AddListener(ILogTableListener listener, TimeSpan maximumWaitTime, int maximumLineCount) { _listeners.AddListener(listener, maximumWaitTime, maximumLineCount); }
public bool RemoveListener(ILogTableListener listener) { return _listeners.RemoveListener(listener); }