/// <inheritdoc/>
            public void Visit(SingleValueMetric metric)
            {
                Ensure.ArgumentNotNull(metric, "metric");

                string result = SingleValueFormatter.Output(metric.Name, metric.UnitOfMeasurement, metric.GetValue());
                writer.WriteLine(result);
            }
Beispiel #2
0
            /// <inheritdoc/>
            public void Visit(SingleValueMetric metric)
            {
                Ensure.ArgumentNotNull(metric, "metric");

                string output = Format(metric.GetValue(), metric.UnitOfMeasurement);
                writer.WriteElementString(metric.Name, output);
            }