public void AddLinkForParsing(string URL) { CloudQueue crawlQueue = CloudConfiguration.GetCrawlingQueue(); CloudQueueMessage message = new CloudQueueMessage(URL); crawlQueue.AddMessage(message); }
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(); }