Definition at line 31 of file TimeServerWebAdapter.cs.
Ntp.Analyzer.Data.Import.TimeServerWebAdapter.TimeServerWebAdapter |
( |
LogBase |
log | ) |
|
|
inlineprotected |
string Ntp.Analyzer.Data.Import.TimeServerWebAdapter.Download |
( |
string |
url, |
|
|
int |
orgId |
|
) |
| |
|
inlineprivate |
Definition at line 73 of file TimeServerWebAdapter.cs.
References e.
77 var client =
new WebClient();
81 "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2;)" 84 var stream = client.OpenRead(url);
89 var reader =
new StreamReader(stream);
90 string html = reader.ReadToEnd();
95 catch (WebException
e)
97 var response = e.Response as HttpWebResponse;
98 if (response != null && response.StatusCode == HttpStatusCode.NotFound)
abstract void WriteLine(string text, Severity severity)
string Ntp.Analyzer.Data.Import.TimeServerWebAdapter.FetchHtml |
( |
string |
url, |
|
|
int |
orgId |
|
) |
| |
|
inlineprotected |
abstract TimeServer Ntp.Analyzer.Data.Import.TimeServerWebAdapter.Import |
( |
int |
orgId | ) |
|
|
pure virtual |
static void Ntp.Analyzer.Data.Import.TimeServerWebAdapter.Initialize |
( |
bool |
enable | ) |
|
|
inlinestatic |
bool Ntp.Analyzer.Data.Import.TimeServerWebAdapter.enabled |
|
staticprivate |
readonly LogBase Ntp.Analyzer.Data.Import.TimeServerWebAdapter.Log |
|
protected |
abstract string Ntp.Analyzer.Data.Import.TimeServerWebAdapter.Provider |
|
getprotected |
The documentation for this class was generated from the following file: