Esempio n. 1
0
        public IISWebOptions(IISWebArguments args)
        {
            var sslIp = args.SSLIPAddress;

            if (!string.IsNullOrEmpty(sslIp) && sslIp != IISClient.DefaultBindingIp)
            {
                NewBindingIp = sslIp;
            }
            var sslPort = args.SSLPort;

            if (sslPort != IISClient.DefaultBindingPort)
            {
                NewBindingPort = sslPort;
            }
        }
Esempio n. 2
0
        public IISWebOptions(IISWebArguments args)
        {
            var sslIp = args.SSLIPAddress;

            if (!string.IsNullOrEmpty(sslIp) && sslIp != IISClient.DefaultBindingIp)
            {
                NewBindingIp = sslIp;
            }
            var sslPortRaw = args.SSLPort;

            if (!string.IsNullOrEmpty(sslPortRaw))
            {
                // Already validated by the ArgumentsProvider
                var sslPort = int.Parse(sslPortRaw);
                if (sslPort != IISClient.DefaultBindingPort)
                {
                    NewBindingPort = sslPort;
                }
            }
        }