public static void Start() { if (Started) { throw new Exception("NAND service is already started!"); } // Do initial scan of drives Refresh(); CreateWatcher.Start(); DeleteWatcher.Start(); Started = true; }
public static void Start() { if (Started) { throw new Exception("Inject service is already started!"); } Refresh(); if (WMIDeviceInfo != null) { Task.Run(() => DeviceInserted?.Invoke()); } CreateWatcher.Start(); DeleteWatcher.Start(); Started = true; }
public static void Start() { if (Started) { throw new Exception("Inject service is already started!"); } if (HACGUIKeyset.TempLockpickPayloadFileInfo.Exists) { HACGUIKeyset.TempLockpickPayloadFileInfo.Delete(); } Refresh(); if (WMIDeviceInfo != null) { Task.Run(() => DeviceInserted?.Invoke()); } CreateWatcher.Start(); DeleteWatcher.Start(); Started = true; }