NTP Analyzer  0.8.2
Analyze the operation of time servers
Ntp.Analyzer.Page.BootstrapPeerSummaryPageBuilder Class Reference
Inheritance diagram for Ntp.Analyzer.Page.BootstrapPeerSummaryPageBuilder:
Collaboration diagram for Ntp.Analyzer.Page.BootstrapPeerSummaryPageBuilder:

Public Member Functions

 BootstrapPeerSummaryPageBuilder (MenuConfiguration menu, PeerSummaryPageConfiguration page)
 
override Stream Generate ()
 

Public Attributes

override IEnumerable< StreamDestinationDestinations => page.Destinations.Destinations
 

Private Attributes

readonly MenuConfiguration menu
 
readonly PeerSummaryPageConfiguration page
 

Additional Inherited Members

- Protected Member Functions inherited from Ntp.Analyzer.Page.PageBuilderBase
Stream ToStream (string text)
 
- Properties inherited from Ntp.Analyzer.Page.PageBuilderBase
abstract IEnumerable< StreamDestinationDestinations [get]
 
- Properties inherited from Ntp.Analyzer.Export.IStreamGenerator
IEnumerable< StreamDestinationDestinations [get]
 

Detailed Description

Definition at line 32 of file BootstrapPeerSummaryPageBuilder.cs.

Constructor & Destructor Documentation

Ntp.Analyzer.Page.BootstrapPeerSummaryPageBuilder.BootstrapPeerSummaryPageBuilder ( MenuConfiguration  menu,
PeerSummaryPageConfiguration  page 
)
inline

Definition at line 34 of file BootstrapPeerSummaryPageBuilder.cs.

37  {
38  this.menu = menu;
39  this.page = page;
40  }

Member Function Documentation

override Stream Ntp.Analyzer.Page.BootstrapPeerSummaryPageBuilder.Generate ( )
inlinevirtual

Implements Ntp.Analyzer.Page.PageBuilderBase.

Definition at line 47 of file BootstrapPeerSummaryPageBuilder.cs.

48  {
49  // Create page
50  var peerSummaryPage = new BootstrapSummaryPageRender(page.WebPath, page.ServerName);
51  peerSummaryPage.Add(new BootstrapMenuRender(page.WebPath, menu, page));
52  peerSummaryPage.Add(new BootstrapSummaryGraphRender(page.WebPath, page.HostId, page, page.Graphs));
53 
54  // Generate HTML
55  var htmlRender = new HtmlRenderer(peerSummaryPage);
56  string html = htmlRender.Render();
57 
58  return ToStream(html);
59  }
string ServerName
Gets the name of the server in the HostSubConfiguration.
int HostId
Gets the host identifier in the HostSubConfiguration.
Uri WebPath
Gets the web path in the HostSubConfiguration.
Renders IHtmlObjects into plain text for display in browsers.
Definition: HtmlRenderer.cs:31
IEnumerable< GraphSetConfiguration > Graphs
Gets the graphs to show on this page.

Member Data Documentation

override IEnumerable<StreamDestination> Ntp.Analyzer.Page.BootstrapPeerSummaryPageBuilder.Destinations => page.Destinations.Destinations

Definition at line 45 of file BootstrapPeerSummaryPageBuilder.cs.

readonly MenuConfiguration Ntp.Analyzer.Page.BootstrapPeerSummaryPageBuilder.menu
private

Definition at line 42 of file BootstrapPeerSummaryPageBuilder.cs.

readonly PeerSummaryPageConfiguration Ntp.Analyzer.Page.BootstrapPeerSummaryPageBuilder.page
private

Definition at line 43 of file BootstrapPeerSummaryPageBuilder.cs.


The documentation for this class was generated from the following file: