Пример #1
0
        public async Task Tree(string path)
        {
            var root = await Hosting.GetItemsTreeAsync(path);

            var formatter = new NodeFormatter('=');

            Console.WriteLine(formatter.BuildNodes(root.Select(n => n.Name)));
        }
Пример #2
0
 public void BuildNodes(Node <OAuthCredentials> root, StreamWriter writer)
 {
     if (root == null)
     {
         throw new ArgumentNullException(nameof(root));
     }
     formatter.BuildNodes(root.Select(c => c.SerializeToString()), writer);
 }