コード例 #1
0
ファイル: PostCounter.cs プロジェクト: belmirojr/dblog
        public PostCounterTest()
        {
            CounterTest countertest = new CounterTest();

            AddDependentObject(countertest);

            PostTest Posttest = new PostTest();

            AddDependentObject(Posttest);

            mPostCounter         = new PostCounter();
            mPostCounter.Counter = countertest.Counter;
            mPostCounter.Post    = Posttest.Post;
        }
コード例 #2
0
ファイル: Downloader.cs プロジェクト: hxysh/TumblThree
 protected Downloader(IShellService shellService, ICrawlerService crawlerService = null, IBlog blog = null)
 {
     this.shellService   = shellService;
     this.crawlerService = crawlerService;
     this.blog           = blog;
     counter             = new PostCounter(blog);
     files                      = LoadFiles();
     lockObjectDb               = new object();
     lockObjectDirectory        = new object();
     lockObjectDownload         = new object();
     lockObjectProgress         = new object();
     statisticsBag              = new ConcurrentBag <Tuple <PostTypes, string, string> >();
     producerConsumerCollection = new BlockingCollection <Tuple <PostTypes, string, string> >();
     SetUp();
 }