2using System.Threading.Tasks;
45 [Page(7,
"Configuration")]
46 [Header(250,
"Queue Name:")]
47 [ToolTip(251,
"Name of local queue to which events will be logged.")]
49 public string Queue {
get;
set; }
54 [Page(7,
"Configuration")]
55 [Header(150,
"Delete After Days:")]
56 [ToolTip(258,
"Number of days after which log events are purged from queue.")]
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(
"EventQueue");
93 Output.WriteAttributeString(
"id", this.
SinkId);
94 Output.WriteAttributeString(
"name", this.
Queue);
95 Output.WriteAttributeString(
"deleteAfterDays", this.
DeleteAfterDays.ToString());
96 Output.WriteEndElement();
107 public override Task<IEnumerable<ICommand>>
Commands => this.GetCommands();
109 private Task<IEnumerable<ICommand>> GetCommands()
111 return Task.FromResult<IEnumerable<ICommand>>(
new ICommand[]
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.
Command to clear a queue.
Representation of an EventQueue
override void Export(XmlWriter Output)
Exports the event sink definition to XML.
override Task< string > GetTypeNameAsync(Language Language)
Gets the type name of the node.
override Task< IEnumerable< ICommand > > Commands
Available command objects. If no commands are available, null is returned.
override async Task< IEnumerable< Parameter > > GetDisplayableParametersAsync(Language Language, RequestOrigin Caller)
Gets displayable parameters.
override bool HasCommands
If the node has registered commands or not.
EventQueueEventSinkNode(GatewayConfigSource Source, ConfigurationNode Parent, string SinkId, string Queue, int DeleteAfterDays)
Representation of a EventQueue
EventQueueEventSinkNode()
Representation of a WebHookEventSink
int DeleteAfterDays
Number of days after which log files are deleted.
Data source mirroring the Gateway.config file.
Tokens available in request.