2using System.Threading.Tasks;
46 [Page(7,
"Configuration")]
47 [Header(148,
"File Name:")]
48 [ToolTip(149,
"Name of file where events will be logged.")]
49 [Text(
TextPosition.AfterField, 154,
"The substrings %YEAR%, %MONTH%, %DAY%, %HOUR%, %MINUTE and %SECOND% will be replaced by the current year, month, day, hour, minute and second respectively.")]
56 [Page(7,
"Configuration")]
57 [Header(155,
"Transform File Name:")]
58 [ToolTip(156,
"Name of optional transform file that will be embedded in generated XML files.")]
59 [Text(
TextPosition.AfterField, 154,
"The substrings %YEAR%, %MONTH%, %DAY%, %HOUR%, %MINUTE and %SECOND% will be replaced by the current year, month, day, hour, minute and second respectively.")]
65 [Page(7,
"Configuration")]
66 [Header(150,
"Delete After Days:")]
67 [ToolTip(151,
"Number of days after which log files are deleted.")]
69 [Range(1,
int.MaxValue)]
89 LinkedList<Parameter> Parameters = (LinkedList<Parameter>)await base.GetDisplayableParametersAsync(
Language, Caller);
102 public override void Export(XmlWriter Output)
104 Output.WriteStartElement(
"XmlFileEventSink");
105 Output.WriteAttributeString(
"id", this.
SinkId);
106 Output.WriteAttributeString(
"fileName", this.
FileName);
108 Output.WriteAttributeString(
"deleteAfterDays", this.
DeleteAfterDays.ToString());
109 Output.WriteEndElement();
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 XmlFileEventSink
int DeleteAfterDays
Number of days after which log files are deleted.
override async Task< IEnumerable< Parameter > > GetDisplayableParametersAsync(Language Language, RequestOrigin Caller)
Gets displayable parameters.
XmlFileEventSinkNode()
Representation of a XmlFileEventSink
string TransformFileName
Name of the transform file to embed in XML file output.
XmlFileEventSinkNode(GatewayConfigSource Source, ConfigurationNode Parent, string SinkId, string FileName, string TransformFileName, int DeleteAfterDays)
Representation of a XmlFileEventSink
string FileName
Name of file where events will be logged.
override Task< string > GetTypeNameAsync(Language Language)
Gets the type name of the node.
override void Export(XmlWriter Output)
Exports the event sink definition to XML.
Data source mirroring the Gateway.config file.
Tokens available in request.
TextPosition
Where the instructions are to be place.