Exemple #1
0
        protected override void OnStart(string[] args)
        {
            thDownload        = new SynThread("Download", 5000, PerformDownload);
            thProcessArticles = new SynThread("ProcessingArticles", 1001, PerformArticleProcessing);
            thProcessShingles = new SynThread("ProcessingShingles", 1111, PerformShingleProcessing);
            //thIntrinio = new SynThread("Intrinio", 24000 * 3600 / 450, PerformIntrinio);
            //thIntrinio = new SynThread("Intrinio", 24000 * 3600 / 45, PerformIntrinio);

            RssLogic.UpdateServerConnection();
            using (var ctx = new Db())
            {
                RssLogic.AddNewFeedsFromResource(ctx);
            }
            StartThread(thDownload);
            //StartThread(thProcessShingles);
            StartThread(thProcessArticles);
            //StartThread(thIntrinio);
        }