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

Public Member Functions

 BootstrapAboutPageBuilder (MenuConfiguration menu, AboutPageConfiguration page)
 
override Stream Generate ()
 

Public Attributes

override IEnumerable< StreamDestinationDestinations => page.Destinations.Destinations
 

Private Attributes

readonly MenuConfiguration menu
 
readonly AboutPageConfiguration 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 31 of file BootstrapAboutPageBuilder.cs.

Constructor & Destructor Documentation

Ntp.Analyzer.Page.BootstrapAboutPageBuilder.BootstrapAboutPageBuilder ( MenuConfiguration  menu,
AboutPageConfiguration  page 
)
inline

Definition at line 33 of file BootstrapAboutPageBuilder.cs.

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

Member Function Documentation

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

Implements Ntp.Analyzer.Page.PageBuilderBase.

Definition at line 46 of file BootstrapAboutPageBuilder.cs.

47  {
48  // Create page
49  var aboutPage = new BootstrapAboutPageRender(
51  );
52 
53  if (menu != null)
54  {
55  aboutPage.Add(new BootstrapMenuRender(page.WebPath, menu, page));
56  }
57 
58  // Generate HTML
59  var htmlRender = new HtmlRenderer(aboutPage);
60  string html = htmlRender.Render();
61 
62  return ToStream(html);
63  }
Uri WebPath
Gets the web path in the HostSubConfiguration.
Renders IHtmlObjects into plain text for display in browsers.
Definition: HtmlRenderer.cs:31

Member Data Documentation

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

Definition at line 44 of file BootstrapAboutPageBuilder.cs.

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

Definition at line 41 of file BootstrapAboutPageBuilder.cs.

readonly AboutPageConfiguration Ntp.Analyzer.Page.BootstrapAboutPageBuilder.page
private

Definition at line 42 of file BootstrapAboutPageBuilder.cs.


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