Example #1
0
 public Path AddPath(string path, Action<Path> configure = null)
 {
     var pathInfo = new Path();
     Paths.Add(path, pathInfo);
     if (configure != null) configure(pathInfo);
     return pathInfo;
 }
Example #2
0
 private static JObject PathToJObject(Path p)
 {
     return new JObject(p.Operations.Select(
                           op => new JProperty(op.Key, OpToJObject(op.Value))));
 }