Beispiel #1
0
 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());
     }
 }
Beispiel #2
0
        void GetChildItems(string path, INodeFactory nodeFactory, bool recurse)
        {
            var context  = CreateContext(path, recurse);
            var children = nodeFactory.GetNodeChildren(context);

            WriteChildItem(path, recurse, children);
        }
Beispiel #3
0
 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);
     });
 }
Beispiel #4
0
 public IEnumerable <INodeFactory> GetNodeChildren(IContext context)
 {
     return(_factory.GetNodeChildren(context));
 }
Beispiel #5
0
 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);
             });
 }
Beispiel #6
0
 void GetChildItems(string path, INodeFactory nodeFactory, bool recurse)
 {
     var context = CreateContext(path, recurse );
     var children = nodeFactory.GetNodeChildren(context);
     WriteChildItem(path, recurse, children);
 }
Beispiel #7
0
 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());
     }
 }