示例#1
0
        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();
            }
        }
示例#2
0
        protected virtual void OnException(Exception exeption)
        {
            if (Exception == null)
            {
                return;
            }

            var e = new WorkflowExceptionEventArgs
            {
                WorkflowType = GetType(),
                Exception    = exeption
            };

            Exception(this, e);
        }
示例#3
0
 protected virtual void OnWorkflowException(object sender, WorkflowExceptionEventArgs e)
 {
 }