23 using System.Collections.Generic;
42 IEnumerable<StatusLine> lines)
46 this.lines =
new List<StatusLine>(lines);
49 private readonly List<StatusLine>
lines;
53 public override IEnumerable<StreamDestination> Destinations => page.
Destinations.Destinations;
57 DateTime now = page.ShowUtc == DateTimeKind.Utc ? DateTime.UtcNow : DateTime.Now;
60 DateTime next = schedule.CalculateNextRun(now);
61 int wait = Convert.ToInt32(next.Subtract(now).TotalSeconds) + 1;
70 hostPage.Add(menuBar);
74 hostPage.Add(statusTable);
87 string html = htmlRender.Render();
89 return ToStream(html);
HostDatabaseMapper Hosts
Gets the host mapper.
A description of job schedule rules.
readonly HostPageConfiguration page
Renders IHtmlObjects into plain text for display in browsers.
A status line for an NTP Server containing information about configuration, peer and server details...
BootstrapHostPageBuilder(MenuConfiguration menu, HostPageConfiguration page, IEnumerable< StatusLine > lines)
readonly MenuConfiguration menu
Singleton facade class used to access memory persistent data.
override Stream Generate()
DestinationCollection Destinations
Gets the destinations for output generated by this configuration.
readonly List< StatusLine > lines
static DataFace Instance
Gets the Singleton instance.
Configuration for a HTML page showing status and graphs for a hosted NTP server.