23 using System.Collections.Generic;
29 namespace Ntp.Analyzer.Render.
Peer 37 IEnumerable<GraphSetConfiguration> graphs)
40 this.peerName = peerName;
42 this.graphs =
new List<GraphSetConfiguration>(graphs);
45 private readonly List<GraphSetConfiguration>
graphs;
52 var builder =
new StringBuilder();
54 foreach (var graphSet
in graphs)
56 foreach (var graph
in graphSet.Graphs)
58 string name = server != null ? server.Name : peerName;
59 builder.Append(
@"<br><img src=""");
60 builder.Append(graph.GetLink(graphSet, name).ToHtmlString());
61 builder.Append(
@""" alt=""");
62 builder.Append(graph.GetAltName(graphSet, name));
63 builder.AppendLine(
@"""><br>");
67 return builder.ToString();
override string RenderFooter()
readonly List< GraphSetConfiguration > graphs
readonly TimeServer server
override string RenderHead()
DefaultPeerGraphRender(Uri webPath, string peerName, TimeServer server, IEnumerable< GraphSetConfiguration > graphs)