Definition at line 29 of file DefaultPeerInfoRender.cs.
Ntp.Analyzer.Render.Peer.DefaultPeerInfoRender.DefaultPeerInfoRender |
( |
Uri |
webPath, |
|
|
TimeServer |
server, |
|
|
string |
name |
|
) |
| |
|
inline |
string Ntp.Analyzer.Render.Peer.DefaultPeerInfoRender.GetPoolMemberLink |
( |
| ) |
|
|
inlineprivate |
Definition at line 179 of file DefaultPeerInfoRender.cs.
182 return "Server is not a pool member";
184 var builder =
new StringBuilder();
185 builder.Append(
@"<a href=""http://www.pool.ntp.org/scores/");
187 builder.Append(
@""">pool.ntp.org</a>");
188 return builder.ToString();
abstract bool IsPoolMember
abstract IPAddress Address
readonly TimeServer server
string Ntp.Analyzer.Render.Peer.DefaultPeerInfoRender.GetProviderLink |
( |
| ) |
|
|
inlineprivate |
Definition at line 191 of file DefaultPeerInfoRender.cs.
196 var builder =
new StringBuilder();
197 builder.Append(
@"<a href=""");
199 builder.Append(
@""">");
201 builder.Append(
"</a>");
202 return builder.ToString();
abstract string ProviderPage
abstract string ProviderUrl
readonly TimeServer server
string Ntp.Analyzer.Render.Peer.DefaultPeerInfoRender.GetServerAccess |
( |
| ) |
|
|
inlineprivate |
Definition at line 155 of file DefaultPeerInfoRender.cs.
160 return "Open access";
abstract string AccessPolicy
readonly TimeServer server
string Ntp.Analyzer.Render.Peer.DefaultPeerInfoRender.GetServiceArea |
( |
| ) |
|
|
inlineprivate |
Definition at line 166 of file DefaultPeerInfoRender.cs.
170 if (description ==
string.Empty)
173 string firstLetter = description.Substring(0, 1);
174 string rest = description.Substring(1);
176 return firstLetter.ToUpper() + rest;
readonly TimeServer server
abstract string ServiceArea
string Ntp.Analyzer.Render.Peer.DefaultPeerInfoRender.GetStratumText |
( |
| ) |
|
|
inlineprivate |
override string Ntp.Analyzer.Render.Peer.DefaultPeerInfoRender.Render |
( |
| ) |
|
|
inline |
Implements Ntp.Analyzer.Render.IHtmlObject.
Definition at line 42 of file DefaultPeerInfoRender.cs.
44 var builder =
new StringBuilder();
46 builder.AppendLine(
"<table>");
47 builder.AppendLine(
@"<col class=""fst""><col class=""sec""><col class=""thd""><col class=""frt"">");
48 builder.AppendLine(
"<tbody>");
50 builder.AppendLine(
"<tr>");
51 builder.Append(
@" <td>Server location</td><td colspan=""3"">");
53 builder.AppendLine(
"</td>");
54 builder.AppendLine(
"</tr>");
56 builder.AppendLine(
"<tr>");
57 builder.Append(
@" <td>Synchronization</td><td colspan=""3"">");
59 builder.AppendLine(
"</td>");
60 builder.AppendLine(
"</tr>");
62 builder.AppendLine(
"<tr>");
63 builder.Append(
" <td>IP address</td><td>");
64 builder.Append(
server?.Address?.ToString() ??
string.Empty);
65 builder.AppendLine(
"</td>");
66 builder.Append(
" <td>Access policy</td><td>");
68 builder.AppendLine(
"</td>");
69 builder.AppendLine(
"</tr>");
71 builder.AppendLine(
"<tr>");
72 builder.Append(
" <td>IPv6 address</td><td>");
74 builder.AppendLine(
"</td>");
75 builder.Append(
" <td>Service area</td><td>");
77 builder.AppendLine(
"</td>");
78 builder.AppendLine(
"</tr>");
80 builder.AppendLine(
"<tr>");
81 builder.Append(
@" <td>Pool member info</td><td>");
83 builder.AppendLine(
"</td>");
84 builder.Append(
" <td>Provider page</td><td>");
86 builder.AppendLine(
"</td>");
87 builder.AppendLine(
"</tr>");
89 builder.AppendLine(
"<tr>");
90 builder.Append(
"<td>Description updated</td><td>");
91 builder.Append(
server?.Updated.ToLongDateString() ??
Na);
92 builder.AppendLine(
"</td>");
96 @" <td>Additional info</td><td><a href=""http://support.ntp.org/bin/view/Servers/PublicTimeServer");
97 builder.Append(
server.
Id.ToString(CultureInfo.InvariantCulture).PadLeft(6,
'0'));
98 builder.AppendLine(
@""">support.ntp.org</a></td>");
102 builder.Append($
@" <td>Additional info</td><td>{Na}</td>");
104 builder.AppendLine(
"</tr>");
106 builder.AppendLine(
"</tbody>");
107 builder.AppendLine(
"</table>");
109 return builder.ToString();
string GetPoolMemberLink()
abstract string V6Address
int Id
Gets the identifier.
readonly TimeServer server
override string Ntp.Analyzer.Render.Peer.DefaultPeerInfoRender.RenderFooter |
( |
| ) |
|
|
inlinevirtual |
override string Ntp.Analyzer.Render.Peer.DefaultPeerInfoRender.RenderHead |
( |
| ) |
|
|
inlinevirtual |
Implements Ntp.Analyzer.Render.HtmlObjectRender.
Definition at line 117 of file DefaultPeerInfoRender.cs.
119 var builder =
new StringBuilder();
121 builder.Append(
"<h2>");
123 builder.Append(
"</h2> <h4>Stratum ");
125 builder.AppendLine(
" server</h4>");
127 return builder.ToString();
readonly TimeServer server
const string Ntp.Analyzer.Render.Peer.DefaultPeerInfoRender.Na = " " |
|
private |
readonly string Ntp.Analyzer.Render.Peer.DefaultPeerInfoRender.name |
|
private |
readonly TimeServer Ntp.Analyzer.Render.Peer.DefaultPeerInfoRender.server |
|
private |
The documentation for this class was generated from the following file: