Пример #1
0
        public void AddLinkForParsing(string URL)
        {
            CloudQueue        crawlQueue = CloudConfiguration.GetCrawlingQueue();
            CloudQueueMessage message    = new CloudQueueMessage(URL);

            crawlQueue.AddMessage(message);
        }
Пример #2
0
        public AdminStatus(string state, int cpu, int mem)
        {
            this.PartitionKey = "Dashboard Status";
            this.RowKey       = "Row";
            State             = state;
            CPUCounter        = cpu;
            MemCounter        = mem;
            NumCrawled        = 0;
            Last10CrawledList = new List <string>();
            Last10Crawled     = "";
            CloudQueue temp = CloudConfiguration.GetCrawlingQueue();

            temp.FetchAttributes();
            QueueSize = temp.ApproximateMessageCount.ToString();
        }