Example #1
0
        private ActionNode CreateActionNode(CodeBaseActionProxy action)
        {
            Block block = delegate {
                CodeBase codeBase = _codeBase;
                RunBackground(delegate
                {
                    IList <Hit> hits = action.Execute(codeBase);
                    return(new ActionResults(action, hits));
                });
            };

            return(new ActionNode(action.Name, action.Description, block));
        }
Example #2
0
 public ActionResults(CodeBaseActionProxy action, IList <Hit> hits)
 {
     _action = action;
     _hits   = hits;
 }