public IndexWorkItem(IndexWorkItemComplete onComplete, IndexWorkItemError onError) { this.waitHandle = new EventWaitHandle(false, EventResetMode.ManualReset); this.Status = IndexWorkItemStatus.Pending; this.OnComplete = onComplete; this.OnError = onError; }
public IndexWorkItem(IndexWorkItemComplete onComplete) : this(onComplete, null) { }