Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
GeneralInformation.cs
1using System.Threading.Tasks;
3using Waher.Things;
5
7{
12 {
13 internal const string Id = "GeneralInformation";
14
20 : base(Source, null)
21 {
22 }
23
27 [Page(7, "Configuration")]
28 [Header(12, "Application name:")]
29 [ToolTip(13, "Application Name of the broker.")]
30 [Required]
31 public string ApplicationName { get; set; }
32
36 [Page(7, "Configuration")]
37 [Header(21, "Exception Folder:")]
38 [ToolTip(22, "Local folder where exception logs will be stored.")]
39 [Text(TextPosition.AfterField, 63, "Note: Changes will take effect after broker has been restarted.")]
40 public string ExceptionFolder { get; set; }
41
45 public override string NodeId => Id;
46
51 public override Task<string> GetTypeNameAsync(Language Language) => Language.GetStringAsync(typeof(GatewayConfigSource), 2, "General Information");
52
58 public override Task<bool> CanDestroyAsync(RequestOrigin Caller)
59 {
60 return Task.FromResult(false);
61 }
62 }
63}
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.
override Task< bool > CanDestroyAsync(RequestOrigin Caller)
If the node can be destroyed to by the caller.
GeneralInformation(GatewayConfigSource Source)
General information about the gateway.
override Task< string > GetTypeNameAsync(Language Language)
Gets the type name of the node.
Tokens available in request.
Definition: RequestOrigin.cs:9
TextPosition
Where the instructions are to be place.
Definition: TextAttribute.cs:9