コード例 #1
0
ファイル: Parsers.cs プロジェクト: bodkia22/NUWM.Servers.X
        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();
            }
        }
コード例 #2
0
ファイル: Parsers.cs プロジェクト: bodkia22/NUWM.Servers.X
 public void SetCurrent(ParserPool u = null)
 {
     Current = u ?? this;
 }
コード例 #3
0
 public InstantCacheSaveScheduler(ParserPool pool) : base(TimeSpan.FromHours(1))
 {
     this.pool = pool;
 }