Пример #1
0
        public static void Init()
        {
            if (instance == null)
            {
                instance = new Worker();
                Catch.Init();
                Config.Init();

                Task.Run(() =>
                {
                    if (Config.AutoContinueSearches && Config.CacheTime > 0)
                    {
                        instance.AutoContinue();
                    }
                    if (Config.AutoClearOldCache)
                    {
                        ClearOldCache();
                    }
                });
            }
        }