示例#1
0
文件: Main.cs 项目: znatz/Wox
 public Main()
 {
     _settingsStorage = new PluginJsonStorage <Settings>();
     _settings        = _settingsStorage.Load();
     _cacheStorage    = new BinaryStorage <ProgramIndexCache>();
     _cache           = _cacheStorage.Load();
 }
示例#2
0
文件: Main.cs 项目: danisein/Wox
 public Main()
 {
     _settingsStorage = new PluginJsonStorage<Settings>();
     _settings = _settingsStorage.Load();
     _cacheStorage = new BinaryStorage<ProgramIndexCache>();
     _cache = _cacheStorage.Load();
 }
示例#3
0
文件: Main.cs 项目: zhudaoruyi/Wox
        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);
        }
示例#4
0
文件: Main.cs 项目: JohnTheGr8/Wox
        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);
        }
示例#5
0
 static ImageLoader()
 {
     _storage = new BinaryStorage <ImageCache>();
     _cache   = _storage.Load();
 }
示例#6
0
 static ImageLoader()
 {
     _storage = new BinaryStorage<ImageCache>();
     _cache = _storage.Load();
 }