private void CheckRemoval(Object source, ElapsedEventArgs e) { foreach (var fileName in _dirMonitor.DeletedFiles()) { _subscriber($"{fileName}"); } }
private void CheckRemoval(Object source, ElapsedEventArgs e) { foreach (var fileName in _dirMonitor.DeletedFiles()) { var handler = RemoveFiles; handler?.Invoke(this, fileName); } }
private void CheckRemoval(Object source, ElapsedEventArgs e) { foreach (var fileName in _dirMonitor.DeletedFiles()) { foreach (var observer in _observers) { observer.OnNext(fileName); } } }