Example #1
0
        protected void Code(string name, Action action)
        {
            var initialScope = _scopes.Clone();

            try
            {
                action();
            }
            catch (InjectFailureException)
            {
                var state = new RuntimeContext.WorkflowState(name, initialScope);
                throw new WorkflowInterruptionException(state);
            }
        }
 public WorkflowInterruptionException(RuntimeContext.WorkflowState state)
 {
     _state = state;
 }