Example #1
0
        private Model.PersistentVMModel.NetworkConfigurationSet CreateNetworkConfigurationSet()
        {
            var netConfig = new Model.PersistentVMModel.NetworkConfigurationSet
            {
                InputEndpoints = new Collection <InputEndpoint>()
            };

            if (SubnetNames != null)
            {
                netConfig.SubnetNames = new Model.PersistentVMModel.SubnetNamesCollection();
                foreach (var subnet in SubnetNames)
                {
                    netConfig.SubnetNames.Add(subnet);
                }
            }

            return(netConfig);
        }
        private Model.PersistentVMModel.NetworkConfigurationSet CreateNetworkConfigurationSet()
        {
            var netConfig = new Model.PersistentVMModel.NetworkConfigurationSet
            {
                InputEndpoints = new Collection<InputEndpoint>()
            };

            if (SubnetNames != null)
            {
                netConfig.SubnetNames = new Model.PersistentVMModel.SubnetNamesCollection();
                foreach (var subnet in SubnetNames)
                {
                    netConfig.SubnetNames.Add(subnet);
                }
            }

            return netConfig;
        }