示例#1
0
        //----< send closeSender message to local sender >-------------------

        //------------send average latency message of the writer---------//
        public void sendLatencyWriter(double avgLatencyWriter)
        {
            if (proxyStore.ContainsKey(remoteUrl))
            {
                proxyStore[remoteUrl].getPerformanceResultsWriter(avgLatencyWriter);
            }
            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.getPerformanceResultsWriter(avgLatencyWriter);
                }
            }
        }