Пример #1
0
        public void TestRegister()
        {
            var client = new ServiceKeeperReference.ServiceRegisterClient();

            foreach (var reg in PreparedData.registerRequests1)
            {
                client.Register(reg);
            }

            foreach (var reg in PreparedData.registerRequests2)
            {
                client.Register(reg);
            }

            client.Close();
        }
Пример #2
0
        private void TestRegister_One(object no)
        {
            var client = new ServiceKeeperReference.ServiceRegisterClient();

            var address = string.Format("http://localhost/calc{0}.svc", no.ToString());

            var reg =
                new ServiceRegisteRequest()
            {
                ServiceIdentity = "calc", Address = new ServiceAddress()
                {
                    Address = address
                },
            }
            ;

            client.Register(reg);

            client.Close();
        }