Exemplo n.º 1
0
		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;
		}
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
 /// <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();
 }