Example #1
0
        public async void BaseInitParsers(NewsConfig config)
        {
            if (Current.POOL == new ConcurrentDictionary <string, Parser>())
            {
                var u = new ParserPool(config);
                await u.Run();

                SetCurrent(u);
            }
            else
            {
                await Current.Run();
            }
        }
Example #2
0
 public ParserPool(NewsConfig config)
 {
     _config = config;
     updater = new ExpireCacheUpdater();
 }