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

Public Member Functions

 GraphPageBuilder (GraphPageConfiguration config, NamedObject namedObject, string prefix, GraphSetConfiguration graphSet, GraphBaseConfiguration graph)
 
override Stream Generate ()
 

Public Attributes

override IEnumerable< StreamDestinationDestinations => config.Destinations.Destinations
 

Private Attributes

readonly GraphPageConfiguration config
 
readonly GraphBaseConfiguration graph
 
readonly GraphSetConfiguration graphSet
 
readonly NamedObject namedObject
 
readonly string prefix
 

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 34 of file GraphPageBuilder.cs.

Constructor & Destructor Documentation

Ntp.Analyzer.Page.GraphPageBuilder.GraphPageBuilder ( GraphPageConfiguration  config,
NamedObject  namedObject,
string  prefix,
GraphSetConfiguration  graphSet,
GraphBaseConfiguration  graph 
)
inline

Definition at line 36 of file GraphPageBuilder.cs.

42  {
43  this.config = config;
44  this.namedObject = namedObject;
45  this.prefix = prefix;
46  this.graphSet = graphSet;
47  this.graph = graph;
48  }
readonly GraphPageConfiguration config
readonly GraphSetConfiguration graphSet
readonly GraphBaseConfiguration graph

Member Function Documentation

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

Implements Ntp.Analyzer.Page.PageBuilderBase.

Definition at line 58 of file GraphPageBuilder.cs.

59  {
60  var page = new BootstrapGraphPageRender(
63  config.Title,
64  prefix,
65  graphSet,
66  graph);
67 
68  // Generate HTML
69  var htmlRender = new HtmlRenderer(page);
70  string html = htmlRender.Render();
71 
72  return ToStream(html);
73  }
readonly GraphPageConfiguration config
readonly GraphSetConfiguration graphSet
abstract string Title
Gets the title of this page.
Uri WebPath
Gets the web path in the HostSubConfiguration.
Renders IHtmlObjects into plain text for display in browsers.
Definition: HtmlRenderer.cs:31
readonly GraphBaseConfiguration graph

Member Data Documentation

readonly GraphPageConfiguration Ntp.Analyzer.Page.GraphPageBuilder.config
private

Definition at line 50 of file GraphPageBuilder.cs.

override IEnumerable<StreamDestination> Ntp.Analyzer.Page.GraphPageBuilder.Destinations => config.Destinations.Destinations

Definition at line 56 of file GraphPageBuilder.cs.

readonly GraphBaseConfiguration Ntp.Analyzer.Page.GraphPageBuilder.graph
private

Definition at line 51 of file GraphPageBuilder.cs.

readonly GraphSetConfiguration Ntp.Analyzer.Page.GraphPageBuilder.graphSet
private

Definition at line 52 of file GraphPageBuilder.cs.

readonly NamedObject Ntp.Analyzer.Page.GraphPageBuilder.namedObject
private

Definition at line 53 of file GraphPageBuilder.cs.

readonly string Ntp.Analyzer.Page.GraphPageBuilder.prefix
private

Definition at line 54 of file GraphPageBuilder.cs.


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