Пример #1
0
        /// <summary>
        /// Create a new CrawlQueue object.
        /// </summary>
        /// <param name="id">Initial value of the Id property.</param>
        /// <param name="groupId">Initial value of the GroupId property.</param>
        public static CrawlQueue CreateCrawlQueue(global::System.Int64 id, global::System.Int64 groupId)
        {
            CrawlQueue crawlQueue = new CrawlQueue();

            crawlQueue.Id      = id;
            crawlQueue.GroupId = groupId;
            return(crawlQueue);
        }
Пример #2
0
 public void Push(CrawlerQueueEntry crawlerQueueEntry)
 {
     AspectF.Define.
     WriteLock(m_CrawlQueueLock).
     Do <NCrawlerEntitiesSQLite>(e =>
     {
         CrawlQueue crawlQueueEntry     = CrawlQueue.CreateCrawlQueue(0, m_GroupId);
         crawlQueueEntry.SerializedData = crawlerQueueEntry.ToBinary();
         e.AddToCrawlQueues(crawlQueueEntry);
         e.SaveChanges();
     });
 }
 /// <summary>
 /// Create a new CrawlQueue object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="groupId">Initial value of the GroupId property.</param>
 public static CrawlQueue CreateCrawlQueue(global::System.Int64 id, global::System.Int64 groupId)
 {
     CrawlQueue crawlQueue = new CrawlQueue();
     crawlQueue.Id = id;
     crawlQueue.GroupId = groupId;
     return crawlQueue;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the CrawlQueues EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToCrawlQueues(CrawlQueue crawlQueue)
 {
     base.AddObject("CrawlQueues", crawlQueue);
 }
Пример #5
0
 /// <summary>
 /// Deprecated Method for adding a new object to the CrawlQueues EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToCrawlQueues(CrawlQueue crawlQueue)
 {
     base.AddObject("CrawlQueues", crawlQueue);
 }