Esempio n. 1
0
        public void Process()
        {
            try
            {
                using (var enumerator = _workflow.GetItemEnumerator(_currentWorkflowIndex))
                {
                    while (enumerator.MoveNext())
                    {
                        _currentState = enumerator.Current.Execute(this);
                        _currentWorkflowIndex++;

                        if (_currentState != WorkUnitState.Run)
                        {
                            return;
                        }
                    }
                }
            }
            catch (Exception ex)
            {
                OnException(ex, string.Empty);
            }
        }