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

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

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