public static void ProcessScrapeRequest( IEnumerable <CMetricFamily> collected, string contentType, Stream outputStream) { if (contentType == _protoContentType) { ProtoFormatter.Format(outputStream, collected); } else { TextFormatter.Format(outputStream, collected); } }
public static void ProcessScrapeRequest( IEnumerable <Advanced.DataContracts.MetricFamily> collected, string contentType, Stream outputStream) { if (contentType == ProtoContentType) { ProtoFormatter.Format(outputStream, collected); } else { AsciiFormatter.Format(outputStream, collected); } }