public QueryThreadPool(int connectionPoolSize, int cxnRefreshTime, AbstractAccount account, AbstractCredentials creds, SiteTable siteTable, IList<Site> cxnSites) { MaxActiveConnections = connectionPoolSize; _cxnRefreshTime = cxnRefreshTime; _account = account; _credentials = creds; _siteTable = siteTable; _poolSites = cxnSites; _queue = new QueryThreadPoolQueue(); _queue.Changed += new EventHandler(QueueChanged); //start(); //startAsync(); }
public QueryThreadPool(int connectionPoolSize, int cxnRefreshTime, AbstractAccount account, AbstractCredentials creds, SiteTable siteTable, IList <Site> cxnSites) { MaxActiveConnections = connectionPoolSize; _cxnRefreshTime = cxnRefreshTime; _account = account; _credentials = creds; _siteTable = siteTable; _poolSites = cxnSites; _queue = new QueryThreadPoolQueue(); _queue.Changed += new EventHandler(QueueChanged); //start(); //startAsync(); }