Beispiel #1
0
        //NEED A INSTANCE OF SERVER ALREADY UP - > WITH ONLY PPM
        public void Server(string processName, string url, string min, string max)
        {
            string[] url_port = url.Split('/');
            string   urlFinal = "tcp://localhost:10000/" + url_port.ElementAt(url_port.Length - 1) + "_PPM";

            IServerInterface server = GetProxyObject(processName, urlFinal);

            IServerInterface server2 = GetProxyObject(processName, url);

            serversUp.Add(new KeyValuePair <string, IServerInterface>(processName, server2));
            Console.WriteLine("ServerID added " + processName);

            server.Server(url, min, max);
        }