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)); }
public ActionResults(CodeBaseActionProxy action, IList <Hit> hits) { _action = action; _hits = hits; }