|
const string | ServerTagEnd = @"</div><!-- /twikiForm --></div><!-- /patternContent-->" |
|
const string | ServerTagStart = @"<div class=""twikiAfterText""></div><div class=""twikiForm"">" |
|
Definition at line 30 of file TimeServerLoader.cs.
Ntp.Analyzer.Data.Import.TimeServerLoader.TimeServerLoader |
( |
LogBase |
log | ) |
|
|
inlinepackage |
override TimeServer Ntp.Analyzer.Data.Import.TimeServerLoader.Import |
( |
int |
orgId | ) |
|
|
inlinevirtual |
string Ntp.Analyzer.Data.Import.TimeServerLoader.ImportServer |
( |
int |
orgId | ) |
|
|
inlineprivate |
Definition at line 53 of file TimeServerLoader.cs.
References e.
55 string orgString = orgId.ToString(CultureInfo.InvariantCulture).PadLeft(6,
'0');
56 string url = $
"http://support.ntp.org/bin/view/Servers/PublicTimeServer{orgString}";
62 html = html.Replace(
"<nos>",
string.Empty);
66 int serverTagPos = html.IndexOf(
ServerTagStart, StringComparison.Ordinal);
67 int tableStartPos = html.IndexOf(
"<table", serverTagPos, StringComparison.Ordinal);
68 int tableEndPos = html.IndexOf(
ServerTagEnd, serverTagPos, StringComparison.Ordinal);
69 string table = html.Substring(tableStartPos, tableEndPos - tableStartPos);
74 Log.TimeServerParseError(
"HTML", e);
string FetchHtml(string url, int orgId)
const string ServerTagEnd
const string ServerTagStart
override string Ntp.Analyzer.Data.Import.TimeServerLoader.Provider => "support.ntp.org" |
|
protected |
const string Ntp.Analyzer.Data.Import.TimeServerLoader.ServerTagEnd = @"</div><!-- /twikiForm --></div><!-- /patternContent-->" |
|
private |
const string Ntp.Analyzer.Data.Import.TimeServerLoader.ServerTagStart = @"<div class=""twikiAfterText""></div><div class=""twikiForm"">" |
|
private |
The documentation for this class was generated from the following file: