Example #1
0
File: Main.cs Project: znatz/Wox
 public Main()
 {
     _settingsStorage = new PluginJsonStorage <Settings>();
     _settings        = _settingsStorage.Load();
     _cacheStorage    = new BinaryStorage <ProgramIndexCache>();
     _cache           = _cacheStorage.Load();
 }
Example #2
0
File: Main.cs Project: danisein/Wox
 public Main()
 {
     _settingsStorage = new PluginJsonStorage<Settings>();
     _settings = _settingsStorage.Load();
     _cacheStorage = new BinaryStorage<ProgramIndexCache>();
     _cache = _cacheStorage.Load();
 }
Example #3
0
        public Main()
        {
            _settingsStorage = new PluginJsonStorage <Settings>();
            _settings        = _settingsStorage.Load();

            Stopwatch.Debug("Preload programs", () =>
            {
                _cacheStorage = new BinaryStorage <ProgramIndexCache>();
                _cache        = _cacheStorage.Load();
                _win32s       = _cache.Programs;
            });
            Log.Info($"Preload {_win32s.Length} programs from cache");
            Stopwatch.Debug("Program Index", IndexPrograms);
        }
Example #4
0
        public Main()
        {
            _settingsStorage = new PluginJsonStorage<Settings>();
            _settings = _settingsStorage.Load();

            Stopwatch.Debug("Preload programs", () =>
            {
                _cacheStorage = new BinaryStorage<ProgramIndexCache>();
                _cache = _cacheStorage.Load();
                _win32s = _cache.Programs;
            });
            Log.Info($"Preload {_win32s.Length} programs from cache");
            Stopwatch.Debug("Program Index", IndexPrograms);
        }