Пример #1
0
        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();
        }
Пример #2
0
        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();
        }