private Ice.Properties createServiceProperties(string service) { Ice.Properties properties; Ice.Properties communicatorProperties = _communicator.Properties; if (communicatorProperties.getPropertyAsInt("IceBox.InheritProperties") > 0) { properties = communicatorProperties.Clone(); // Inherit all except Ice.Admin.xxx properties foreach (string p in properties.getPropertiesForPrefix("Ice.Admin.").Keys) { properties.setProperty(p, ""); } } else { properties = Ice.Util.createProperties(); } string programName = communicatorProperties.getProperty("Ice.ProgramName"); if (programName.Length == 0) { properties.setProperty("Ice.ProgramName", service); } else { properties.setProperty("Ice.ProgramName", programName + "-" + service); } return(properties); }