private static void BuildCounterPayload <T>( string context, MetricValueSourceBase <CounterValue> valueSource, IMetricPayloadBuilder <T> payloadBuilder) { var counterValueSource = valueSource as CounterValueSource; payloadBuilder.PackCounter(context, valueSource, counterValueSource); }
private void ReportCounter(string context, MetricValueSourceBase <CounterValue> valueSource) { var counterValueSource = valueSource as CounterValueSource; _payloadBuilder.PackCounter(context, valueSource, counterValueSource); }
private void ReportCounter(string context, MetricValueSourceBase <CounterValue> valueSource) { var counterValueSource = valueSource as CounterValueSource; _payloadBuilder.PackCounter(_metricNameFormatter, context, valueSource, counterValueSource, _dataKeys.Counter); }