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