protected virtual void OnWorkflowException(object sender, WorkflowExceptionEventArgs e) { lock (_waitEventLock) { IsComplete = true; IsInError = true; e.Arguments = Arguments; e.WorkflowId = Id; WorkflowException?.Invoke(this, e); StopRunning(); } }
protected virtual void OnException(Exception exeption) { if (Exception == null) { return; } var e = new WorkflowExceptionEventArgs { WorkflowType = GetType(), Exception = exeption }; Exception(this, e); }
protected virtual void OnWorkflowException(object sender, WorkflowExceptionEventArgs e) { }