Пример #1
0
        void init(string name, DataScraper boss, IDatacleaner datacleaner, int max_requests)
        {
            this.boss         = boss;
            this.datacleaner  = datacleaner;
            Name              = name;
            this.max_requests = max_requests;

            requestHandler   = new DSTRequestHandler(false);
            my_data          = new List <string>();
            requests_handled = new List <TableMetadata>();
            raw_data         = new Dictionary <TableMetadata, string>();
        }
Пример #2
0
 public Worker(string name, DataScraper boss, IDatacleaner datacleaner, int max_requests)
 {
     init(name, boss, datacleaner, max_requests);
 }
Пример #3
0
 public Worker(string name, DataScraper boss, IDatacleaner datacleaner)
 {
     init(name, boss, datacleaner, int.MaxValue);
 }