예제 #1
0
파일: Workflow.cs 프로젝트: fcatae/gafa-bot
        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;
 }