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