2using System.Threading.Tasks;
47 [Page(7,
"Configuration")]
48 [Header(179,
"Host:")]
49 [ToolTip(180,
"Host name of recipient.")]
51 public string Host {
get;
set; }
56 [Page(7,
"Configuration")]
57 [Header(161,
"Port:")]
58 [ToolTip(181,
"Port number of the recipient.")]
61 public int Port {
get;
set; }
66 [Page(7,
"Configuration")]
67 [Header(163,
"Use Encryption (TLS)")]
68 [ToolTip(182,
"If TLS is used to connect to the recipient.")]
70 public bool Tls {
get;
set; }
89 LinkedList<Parameter> Parameters = (LinkedList<Parameter>)await base.GetDisplayableParametersAsync(
Language, Caller);
103 public override void Export(XmlWriter Output)
105 Output.WriteStartElement(
"SocketEventSink");
106 Output.WriteAttributeString(
"id", this.
SinkId);
107 Output.WriteAttributeString(
"host", this.
Host);
108 Output.WriteAttributeString(
"port", this.
Port.ToString());
110 Output.WriteEndElement();
Helps with parsing of commong data types.
static string Encode(bool x)
Encodes a Boolean for use in XML and other formats.
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.
Abstract base class for event sink nodes.
string SinkId
Domain being redirected.
Representation of a SocketEventSink
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.
SocketEventSinkNode(GatewayConfigSource Source, ConfigurationNode Parent, string SinkId, string Host, int Port, bool Tls)
Representation of a SocketEventSink
override void Export(XmlWriter Output)
Exports the event sink definition to XML.
SocketEventSinkNode()
Representation of a SocketEventSink
bool Tls
If TLS is used to connect to the broker.
int Port
Port number of the broker.
Data source mirroring the Gateway.config file.
References a port number.
Boolean-valued parameter.
Tokens available in request.