コード例 #1
0
        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;
        }
コード例 #2
0
ファイル: InjectService.cs プロジェクト: Enspiron/HACGUI
        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;
        }
コード例 #3
0
        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;
        }