1using System.Collections.Generic;
2using System.Threading.Tasks;
21 this.Host =
string.Empty;
22 this.Page =
string.Empty;
42 [
Page(7,
"Configuration")]
43 [Header(8,
"Host name:")]
44 [ToolTip(9,
"Default page will be valid for pages accessed via this host name.")]
45 public string Host {
get;
set; }
50 [
Page(7,
"Configuration")]
52 [ToolTip(11,
"Local page name that the user will be redirected to, if accessing the host name without specifying a local resource.")]
54 [Text(
TextPosition.AfterField, 63,
"Note: Changes will take effect after broker has been restarted.")]
55 public string Page {
get;
set; }
60 public override string NodeId =>
string.IsNullOrEmpty(this.
Host) ?
"(Default)" : this.
Host;
86 LinkedList<Parameter> Parameters =
new LinkedList<Parameter>();
Contains information about a language.
Task< string > GetStringAsync(Type Type, int Id, string Default)
Gets the string value of a string ID. If no such string exists, a string is created with the default ...
async Task< Namespace > GetNamespaceAsync(string Name)
Gets the namespace object, given its name, if available.
Contains information about a namespace in a language.
Task< LanguageString > GetStringAsync(int Id)
Gets the string object, given its ID, if available.
Abstract base class for gateway configuration nodes.
virtual INode Parent
Parent Node, or null if a root node.
GatewayConfigSource Source
Source hosting the node.
Defines a default page for a host.
DefaultPage(GatewayConfigSource Source, WebServer Parent, string Host, string Page)
Defines a default page for a host.
override Task< bool > AcceptsParentAsync(INode Parent)
If the node accepts a presumptive parent, i.e. can be added to that parent (if that parent accepts th...
override Task< string > GetTypeNameAsync(Language Language)
Gets the type name of the node.
override async Task< IEnumerable< Parameter > > GetDisplayableParametersAsync(Language Language, RequestOrigin Caller)
Gets displayable parameters.
DefaultPage()
Defines a default page for a host.
override string NodeId
ID of node.
Data source mirroring the Gateway.config file.
Settings for the Web Server.
Tokens available in request.
Interface for nodes that are published through the concentrator interface.
TextPosition
Where the instructions are to be place.