static void OnFileRemoved(FileEventArgs args) { AsyncEvents.OnFileRemoved(args); foreach (FileEventInfo fi in args) { if (fi.IsDirectory) { Counters.DirectoriesRemoved++; } else { Counters.FilesRemoved++; } } eventQueue.RaiseEvent(FileRemoved, args); }
public void TestAsyncEventsTimingsNoHandlers() { var asyncEvents = new AsyncEvents(); var data = new (EventDataKind, Action) [] {