Beispiel #1
0
        public static void Stop()
        {
            foreach (DirectoryWatcher directoryWatcher in DirectoryWatchers.Values)
            {
                directoryWatcher.Stop();
            }

            DirectoryWatchers.Clear();

            DeviceWatcher.DeviceArrived        -= DeviceWatcher_DeviceArrived;
            DeviceWatcher.DeviceQueryRemove    -= DeviceWatcher_DeviceQueryRemove;
            DeviceWatcher.DeviceRemoveComplete -= DeviceWatcher_DeviceRemoveComplete;
        }
Beispiel #2
0
 public void Clear()
 {
     _directoryWatchers.Clear();
 }