Definition at line 35 of file DefaultPeerSummaryGraphRender.cs.
readonly List< GraphSetConfiguration > graphs
readonly PeerSummaryPageConfiguration page
Uri WebPath
Gets the web path in the HostSubConfiguration.
override string Ntp.Analyzer.Render.Summary.DefaultPeerSummaryGraphRender.Render |
( |
| ) |
|
|
inline |
Implements Ntp.Analyzer.Render.IHtmlObject.
Definition at line 50 of file DefaultPeerSummaryGraphRender.cs.
References Ntp.Analyzer.Data.DataFace.Instance, and Ntp.Analyzer.Data.DataFace.PeerActivities.
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=""");
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();
readonly List< GraphSetConfiguration > graphs
readonly PeerSummaryPageConfiguration page
Uri GetPeerLink(int peerId)
Gets the link related to specified peer.
Singleton facade class used to access memory persistent data.
PeerActivityDatabaseMapper PeerActivities
Gets the peer activity mapper.
static DataFace Instance
Gets the Singleton instance.
override string Ntp.Analyzer.Render.Summary.DefaultPeerSummaryGraphRender.RenderFooter |
( |
| ) |
|
|
inlinevirtual |
override string Ntp.Analyzer.Render.Summary.DefaultPeerSummaryGraphRender.RenderHead |
( |
| ) |
|
|
inlinevirtual |
readonly int Ntp.Analyzer.Render.Summary.DefaultPeerSummaryGraphRender.hostId |
|
private |
The documentation for this class was generated from the following file: