private JObject WriteMicroservice(Microservice microservice)
 {
     return(new JObject(
                new JProperty("id", new JValue(microservice.Id.ToString())),
                new JProperty("name", new JValue(microservice.Id.ToString())),
                new JProperty("features", new JArray(microservice.Select(WriteFeature)))
                ));
 }
Beispiel #2
0
 private JObject WriteMicroservice(Microservice microservice)
 {
     return(new JObject(
                new JProperty("features", new JArray(microservice.Select(WriteFeatureInstance)))
                ));
 }