2using System.Threading.Tasks;
44 [Page(7,
"Configuration")]
45 [Header(148,
"File Name:")]
46 [ToolTip(149,
"Name of file where events will be logged.")]
47 [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.")]
54 [Page(7,
"Configuration")]
55 [Header(150,
"Delete After Days:")]
56 [ToolTip(151,
"Number of days after which log files are deleted.")]
58 [Range(1,
int.MaxValue)]
78 LinkedList<Parameter> Parameters = (LinkedList<Parameter>)await base.GetDisplayableParametersAsync(
Language, Caller);
90 public override void Export(XmlWriter Output)
92 Output.WriteStartElement(
"TextFileEventSink");
93 Output.WriteAttributeString(
"id", this.
SinkId);
94 Output.WriteAttributeString(
"fileName", this.
FileName);
95 Output.WriteAttributeString(
"deleteAfterDays", this.
DeleteAfterDays.ToString());
96 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 TextFileEventSink
TextFileEventSinkNode(GatewayConfigSource Source, ConfigurationNode Parent, string SinkId, string FileName, int DeleteAfterDays)
Representation of a TextFileEventSink
override async Task< IEnumerable< Parameter > > GetDisplayableParametersAsync(Language Language, RequestOrigin Caller)
Gets displayable parameters.
override void Export(XmlWriter Output)
Exports the event sink definition to XML.
string FileName
Name of file where events will be logged.
override Task< string > GetTypeNameAsync(Language Language)
Gets the type name of the node.
TextFileEventSinkNode()
Representation of a TextFileEventSink
int DeleteAfterDays
Number of days after which log files are deleted.
Data source mirroring the Gateway.config file.
Tokens available in request.
TextPosition
Where the instructions are to be place.