Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
ConcentratorServerExtension.cs
1using System;
2using System.Threading.Tasks;
6
8{
13 {
20 : base(Parent, Model)
21 {
22 }
23
27 public override string LocalName => nameof(ConcentratorServerExtension);
28
36 {
38 }
39
46 public override async Task<object> Add(IActor Instance, Waher.Networking.XMPP.XmppClient Client)
47 {
48 ConcentratorServer Extension;
49
50 if (!Client.TryGetTag("ProvisioningClient", out object Obj) || !(Obj is ProvisioningClient ProvisioningClient))
51 ProvisioningClient = null;
52
53 if (!Client.TryGetTag("ThingRegistryClient", out Obj) || !(Obj is ThingRegistryClient ThingRegistryClient))
55
57
58 Client.SetTag("ConcentratorServer", Extension);
59
60 return Extension;
61 }
62
63 }
64}
Root node of a simulation model
Definition: Model.cs:49
override async Task< object > Add(IActor Instance, Waher.Networking.XMPP.XmppClient Client)
Adds the extension to the client.
ConcentratorServerExtension(ISimulationNode Parent, Model Model)
Concentrator Server XMPP extension
override string LocalName
Local name of XML element defining contents of class.
override ISimulationNode Create(ISimulationNode Parent, Model Model)
Creates a new instance of the node.
Abstract base class for IoT XMPP extensions.
Implements an XMPP concentrator server interface.
static Task< ConcentratorServer > Create(XmppClient Client, params IDataSource[] DataSources)
Creates an XMPP concentrator server interface.
Implements an XMPP provisioning client interface.
Implements an XMPP thing registry client interface.
Manages an XMPP client connection. Implements XMPP, as defined in https://tools.ietf....
Definition: XmppClient.cs:59
Basic interface for simulator nodes. Implementing this interface allows classes with default contruct...
ISimulationNode Parent
Parent node in the simulation model.
Basic interface for simulator nodes. Implementing this interface allows classes with default contruct...
Definition: IActor.cs:11
Definition: App.xaml.cs:4