private void WriteChildItem(string path, bool recurse, INodeFactory child) { try { var i = child.GetNodeValue(); if (null == i) { return; } var childPath = MakePath(path, i.Name); WritePathNode(childPath, child); if (recurse) { var context = CreateContext(path, recurse); var kids = child.GetNodeChildren(context); WriteChildItem(childPath, recurse, kids); } } catch (PipelineStoppedException) { throw; } catch (Exception e) { WriteDebug("An exception was raised while writing child items: " + e.ToString()); } }
void GetChildItems(string path, INodeFactory nodeFactory, bool recurse) { var context = CreateContext(path, recurse); var children = nodeFactory.GetNodeChildren(context); WriteChildItem(path, recurse, children); }
void GetChildNames(string path, INodeFactory nodeFactory, ReturnContainers returnContainers) { nodeFactory.GetNodeChildren(CreateContext(path)).ToList().ForEach( f => { var i = f.GetNodeValue(); if (null == i) { return; } WriteItemObject(i.Name, path + "\\" + i.Name, i.IsCollection); }); }
public IEnumerable <INodeFactory> GetNodeChildren(IContext context) { return(_factory.GetNodeChildren(context)); }
void GetChildNames( string path, INodeFactory nodeFactory, ReturnContainers returnContainers ) { nodeFactory.GetNodeChildren(CreateContext(path)).ToList().ForEach( f => { var i = f.GetNodeValue(); if (null == i) { return; } WriteItemObject(i.Name, path + "\\" + i.Name, i.IsCollection); }); }
void GetChildItems(string path, INodeFactory nodeFactory, bool recurse) { var context = CreateContext(path, recurse ); var children = nodeFactory.GetNodeChildren(context); WriteChildItem(path, recurse, children); }
private void WriteChildItem(string path, bool recurse, INodeFactory child) { try { var i = child.GetNodeValue(); if (null == i) { return; } var childPath = MakePath(path, i.Name); WritePathNode(childPath, child); if (recurse) { var context = CreateContext(path, recurse); var kids = child.GetNodeChildren(context); WriteChildItem(childPath, recurse, kids); } } catch (PipelineStoppedException) { throw; } catch (Exception e) { WriteDebug("An exception was raised while writing child items: " + e.ToString()); } }