public NamingService(string hostName, int portNumber) { HostName = hostName; PortNumber = portNumber; Client = new CorbaNamingServiceClient(hostName, portNumber); Factory = new TreeViewItemFactory(Client); }
public NamingService(INamingServiceClient client) { HostName = client.HostName; PortNumber = client.PortNumber; Client = client; Factory = new TreeViewItemFactory(Client); }