Exemple #1
0
        //-------------------------Send average latency of the reader-----------------//
        public void sendLatencyReader(double avgLatencyReader)
        {
            if (proxyStore.ContainsKey(remoteUrl))
            {
                proxyStore[remoteUrl].getPerformanceResultsReader(avgLatencyReader);
            }
            else
            {
                // create new proxy with Connect, save it, and use it

                if (this.Connect(remoteUrl))            // if Connect succeeds it will set proxy and send start msg
                {
                    proxyStore[remoteUrl] = this.proxy; // save proxy
                    proxy.getPerformanceResultsReader(avgLatencyReader);
                }
            }
        }