Esempio n. 1
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();
        }
Esempio n. 2
0
 public bool Register(ServiceRegisteRequest request)
 {
     return(pool.Add(request.Address, request.ServiceIdentity, GetClientIp()));
 }