Example #1
0
 internal void FireBeforeRun()
 {
     this.Status = IndexWorkItemStatus.Running;
 }
Example #2
0
 internal void FireComplete()
 {
     try
     {
         this.Status = IndexWorkItemStatus.Complete;
         if (this.OnComplete != null)
         {
             this.OnComplete();
         }
     }
     finally
     {
         this.waitHandle.Set();
     }
 }
Example #3
0
 internal void FireError(Exception ex, ref bool handled)
 {
     try
     {
         this.Status = IndexWorkItemStatus.Error;
         if (this.OnError != null)
         {
             this.Exception = ex;
             this.OnError(ex, ref handled);
         }
     }
     finally
     {
         this.waitHandle.Set();
     }
 }