Пример #1
0
 public void GetRootMetricsLogger()
 {
     Assert.Null(Record.Exception(() =>
     {
         MetricsManager.GetRootMetricsLogger().IncrementCounter("NumOfExceptions", 1);
         MetricsManager.GetRootMetricsLogger().Flush();
         MetricsManager.FlushAll();
     }));
 }
Пример #2
0
 public void FlushIndividualMetricsLogger()
 {
     Assert.Null(Record.Exception(() =>
     {
         CollectTestMetrics("api=Upload").Flush();
         CollectTestMetrics("api=Download").Flush();
         MetricsManager.FlushAll();
     }));
 }