예제 #1
0
 public IOfferIisWebSiteOptions AddHttpBinding(Action<IOfferBindingOptions> httpBindingOptions)
 {
     var options = new BindingOptions();
     httpBindingOptions(options);
     _values.HttpBindings.Add(options.Values);
     return this;
 }
예제 #2
0
        public IOfferIisWebSiteOptions AddHttpsBinding(X509FindType findType, string findName, Action<IOfferBindingOptions> bindingOptions)
        {
            var options = new BindingOptions();
            bindingOptions(options);

            var httpsOptions = new BindingOptions.SslBindingOptionsValues
                                   {
                                       FindType = findType,
                                       FindName = findName,
                                       BindingOptions = options.Values,
                                       CertLocation = CertLocation.Store
                                   };

            _values.HttpsBindings.Add(httpsOptions);
            return this;
        }