Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
EventSinksNode.cs
1using System.Threading.Tasks;
3using Waher.Things;
4
6{
11 {
12 internal const string Id = "EventSinks";
13
19 : base(Source, null)
20 {
21 }
22
26 public override string NodeId => Id;
27
32 public override Task<string> GetTypeNameAsync(Language Language) => Language.GetStringAsync(typeof(GatewayConfigSource), 144, "Event Sinks");
33
39 public override Task<bool> AcceptsChildAsync(INode Child)
40 {
41 return Task.FromResult(Child is EventSinkNode);
42 }
43
49 public override Task<bool> CanDestroyAsync(RequestOrigin Caller)
50 {
51 return Task.FromResult(false);
52 }
53 }
54}
Contains information about a language.
Definition: Language.cs:17
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 ...
Definition: Language.cs:209
Abstract base class for gateway configuration nodes.
GatewayConfigSource Source
Source hosting the node.
Abstract base class for event sink nodes.
Contains configuration of custom event sinks.
EventSinksNode(GatewayConfigSource Source)
Contains configuration of the Login Auditor.
override Task< bool > AcceptsChildAsync(INode Child)
If the node accepts a presumptive child, i.e. can receive as a child (if that child accepts the node ...
override Task< string > GetTypeNameAsync(Language Language)
Gets the type name of the node.
override Task< bool > CanDestroyAsync(RequestOrigin Caller)
If the node can be destroyed to by the caller.
Tokens available in request.
Definition: RequestOrigin.cs:9
Interface for nodes that are published through the concentrator interface.
Definition: INode.cs:49