22 using System.Collections.Generic;
23 using System.Globalization;
31 namespace Ntp.Analyzer.Render.Summary
38 IEnumerable<GraphSetConfiguration> graphs)
43 this.graphs =
new List<GraphSetConfiguration>(graphs);
46 private readonly List<GraphSetConfiguration>
graphs;
52 var builder =
new StringBuilder();
55 Where(p => p.Host.Id == hostId && p.IsActive);
57 foreach (var entry
in peers)
59 foreach (var graphSet
in graphs)
61 foreach (var graph
in graphSet.Graphs)
63 builder.Append(
@"<a href=""");
64 builder.Append(page.GetPeerLink(entry.Id).ToHtmlString());
65 builder.Append(
@""">");
66 builder.Append(
@"<img src=""");
68 graph.GetLink(graphSet, entry.Id.ToString(CultureInfo.InvariantCulture)).ToHtmlString());
69 builder.Append(
@""" alt=""");
70 builder.Append(graph.GetAltName(graphSet, entry.Peer.Name));
71 builder.Append(
@""">");
72 builder.AppendLine(
@"</a>");
77 return builder.ToString();
override string RenderFooter()
readonly List< GraphSetConfiguration > graphs
readonly PeerSummaryPageConfiguration page
DefaultPeerSummaryGraphRender(int hostId, PeerSummaryPageConfiguration page, IEnumerable< GraphSetConfiguration > graphs)
override string RenderHead()
Singleton facade class used to access memory persistent data.
PeerActivityDatabaseMapper PeerActivities
Gets the peer activity mapper.
static DataFace Instance
Gets the Singleton instance.