public static List<ActionNodeEntityHandler> Create(ActionModelNodeList nodes) { var handlers = new List<ActionNodeEntityHandler>(); foreach (ActionModelNode node in nodes) { //TODO (CR May 2010): remove the try/catch and let it crash? try { ActionNodeEntityHandler handler = Create(node); if (handler != null) handlers.Add(handler); } catch (Exception e) { Platform.Log(LogLevel.Error, e, "Unexpected exception processing action node: {0}", node); } } return handlers; }
public static List <ActionNodeEntityHandler> Create(ActionModelNodeList nodes) { var handlers = new List <ActionNodeEntityHandler>(); foreach (ActionModelNode node in nodes) { //TODO (CR May 2010): remove the try/catch and let it crash? try { ActionNodeEntityHandler handler = Create(node); if (handler != null) { handlers.Add(handler); } } catch (Exception e) { Platform.Log(LogLevel.Error, e, "Unexpected exception processing action node: {0}", node); } } return(handlers); }
/// <summary> /// Protected constructor. /// </summary> /// <param name="pathSegment">The segment of the action path to which this node corresponds.</param> protected ActionModelNode(PathSegment pathSegment) { _pathSegment = pathSegment; _childNodes = new ActionModelNodeList(); }