Exemplo n.º 1
0
 /// <summary>
 /// Handle events generated by the Spider (mostly reporting on success/failure of documents loading/indexing)
 /// </summary>
 public void OnProgressEvent(object source, ProgressEventArgs pea)
 {
     //Define the actions to be performed on
     //button click here.
     if (pea.Level < _ProgressEventLevel)
     {
         Response.Write(pea.Level + " :: " + pea.Message + "<br />");
         Response.Flush();
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Only trigger the event if a Handler has been attached.
 /// </summary>
 private void ProgressEvent(object sender, ProgressEventArgs pea)
 {
     if (this.SpiderProgressEvent != null)
     {
         SpiderProgressEvent(sender, pea);
     }
 }