Пример #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="CrawlMaster"/> class.
        /// </summary>
        /// <param name="settings">
        /// The settings.
        /// </param>
        public CrawlMaster(CrawlSettings settings)
        {
            this.cookieContainer = new CookieContainer();
            this.random = new Random();

            this.Settings = settings;
            this.threads = new Thread[settings.ThreadCount];
            this.threadStatus = new bool[settings.ThreadCount];
        }
Пример #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="CrawlMaster"/> class.
        /// </summary>
        /// <param name="settings">
        /// The settings.
        /// </param>
        public CrawlMaster(CrawlSettings settings)
        {
            this.cookieContainer = new CookieContainer();
            this.random          = new Random();

            this.Settings     = settings;
            this.threads      = new Thread[settings.ThreadCount];
            this.threadStatus = new bool[settings.ThreadCount];
        }
Пример #3
0
        /// <summary>
        ///     Initializes a new instance of the <see cref="CrawlMaster" /> class.
        /// </summary>
        /// <param name="settings">
        ///     The settings.
        /// </param>
        public CrawlMaster(CrawlSettings settings)
        {
            _cookieContainer = new CookieContainer();
            _random = new Random();

            Settings = settings;
            _threads = new Thread[settings.ThreadCount];
            _threadStatus = new bool[settings.ThreadCount];
        }