コード例 #1
0
        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);
        }
コード例 #2
0
 public void TestAsyncEventsTimingsNoHandlers()
 {
     var asyncEvents = new AsyncEvents();
     var data        = new (EventDataKind, Action) [] {