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); }
public TopicDataProxy(TopicDataBuffer topicDataBuffer, UbiiNetworkClient networkClient) { this.topicDataBuffer = topicDataBuffer; this.networkClient = networkClient; }