Exemple #1
0
 public static DataMeter DataMeter(this MetricSpace metricSpace, string key)
 {
     return(new DataMeter(metricSpace.Meter(key)));
 }
Exemple #2
0
 public static bool IsEnabled(this MetricSpace space)
 {
     return(space.Options.ReportingState.IsEnabled());
 }
Exemple #3
0
 public static void Suspend(this MetricSpace space, TimeSpan untill)
 {
     space.Options.ReportingState.Suspend(untill);
 }
Exemple #4
0
 public static void Enable(this MetricSpace space)
 {
     space.Options.ReportingState.Enable();
 }
Exemple #5
0
 public static MetricSpace AddReporters(this MetricSpace target, IEnumerable <IMetricReporter> reporters)
 {
     target.Options.Reporters.AddReporters(reporters);
     return(target);
 }
Exemple #6
0
 public static MetricSpace AddReporter(this MetricSpace target, IMetricReporter reporter)
 {
     target.Options.Reporters.AddReporter(reporter);
     return(target);
 }