Exemple #1
0
    public async Task <bool> InitNetworkConnection()
    {
        networkClient           = new UbiiNetworkClient(masterNodeAddress, portServiceZMQ, portServiceREST, this.serviceConnectionMode, this.topicDataConnectionMode);
        clientNodeSpecification = await networkClient.Initialize(clientNodeSpecification);

        if (clientNodeSpecification == null)
        {
            return(false);
        }

        this.topicData      = new TopicDataBuffer();
        this.topicDataProxy = new TopicDataProxy(topicData, networkClient);
        networkClient.SetPublishDelay(publishDelay);

        return(true);
    }
Exemple #2
0
 public ProcessingModuleManager(string nodeID, object deviceManager, ProcessingModuleDatabase pmDatabase, TopicDataProxy topicdataProxy = null)
 {
     this.nodeID         = nodeID;
     this.topicDataProxy = topicdataProxy;
     this.pmDatabase     = pmDatabase;
 }