Exemplo n.º 1
0
 internal void FireBeforeRun()
 {
     this.Status = IndexWorkItemStatus.Running;
 }
Exemplo n.º 2
0
 internal void FireComplete()
 {
     try
     {
         this.Status = IndexWorkItemStatus.Complete;
         if (this.OnComplete != null)
         {
             this.OnComplete();
         }
     }
     finally
     {
         this.waitHandle.Set();
     }
 }
Exemplo n.º 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();
     }
 }