Esempio n. 1
0
 public DynamicJsonValue ToJson()
 {
     return(new DynamicJsonValue
     {
         [nameof(DatabasePerformanceMetrics.MetricType)] = MeterType,
         [nameof(Recent)] = new DynamicJsonArray(Recent.Select(x => x.ToJson())),
         [nameof(History)] = new DynamicJsonArray(History.Select(x => x.ToJson()))
     });
 }
Esempio n. 2
0
 public DynamicJsonValue ToJson()
 {
     return(new DynamicJsonValue
     {
         [nameof(File)] = File,
         [nameof(Status)] = Status,
         [nameof(Recent)] = new DynamicJsonArray(Recent.Select(x => x.ToJson())),
         [nameof(History)] = new DynamicJsonArray(History.Select(x => x.ToJson()))
     });
 }