예제 #1
0
        private static IisWebSiteBindingDetails ToInternalBinding(Iis6WebSiteBinding binding)
        {
            if (binding.Port == null)
            {
                throw new ConfigurationException("Iis 6 port must not be null");
            }

            return(new IisWebSiteBindingDetails
            {
                Hostname = binding.Hostname == null? null: binding.Hostname.Value,
                IPAddress = binding.IPAddress == null ? null : binding.IPAddress.Value,
                Port = binding.Port.Value,
            });
        }
예제 #2
0
        private static IisWebSiteBindingDetails ToInternalBinding(Iis6WebSiteBinding binding)
        {
            if (binding.Port == null)
            {
                throw new ConfigurationException("Iis 6 port must not be null");
            }

            return new IisWebSiteBindingDetails
                   {
                       Hostname = binding.Hostname == null? null: binding.Hostname.Value,
                       IPAddress = binding.IPAddress == null ? null : binding.IPAddress.Value,
                       Port = binding.Port.Value,
                   };
        }