Exemple #1
0
 void  pWorker_EventEndOfCrawl(PageDownloadJobProgressInfo pinfo)
 {
     if (EndOfCrawl != null)
     {
         EndOfCrawl(pinfo.VisitedSitesCount);
     }
 }
        public DMS.JobProgressInfo GetProgressInfo(DMS.Job job)
        {
            // Downcast der Job- Referenz in eine Referenz vom Typ PageDownloadJob
            PageDownloadJob downloadJob = job as PageDownloadJob;

            Debug.Assert(downloadJob != null);
            lock (Visited)
            {
                PageDownloadJobProgressInfo pinfo = new PageDownloadJobProgressInfo(
                    downloadJob.Url,
                    Visited.Count,
                    downloadJob.JobId,
                    downloadJob.JobState);
                return(pinfo);
            }
        }