protected void OnWorkerException(WorkState state) { WorkerException?.Invoke(this, new WorkStateEventArgs(state)); }
protected void OnWorkerException() { WorkerException?.Invoke(this, new WorkStateEventArgs(CurrentWorkState)); }