Ejemplo n.º 1
0
        public void AddOrUpdateBindings(IEnumerable <string> identifiers, BindingOptions bindingOptions, byte[]?oldThumbprint)
        {
            var updater = new IISHttpBindingUpdater <IISSiteWrapper, IISBindingWrapper>(this, _log);
            var updated = updater.AddOrUpdateBindings(identifiers, bindingOptions, oldThumbprint);

            if (updated > 0)
            {
                _log.Information("Committing {count} {type} binding changes to IIS", updated, "https");
                Commit();
            }
            else
            {
                _log.Warning("No bindings have been changed");
            }
        }
Ejemplo n.º 2
0
        public void UpdateHttpSite(IEnumerable <Identifier> identifiers, BindingOptions bindingOptions, byte[]?oldCertificate, IEnumerable <Identifier>?allIdentifiers)
        {
            var updater = new IISHttpBindingUpdater <IISSiteWrapper, IISBindingWrapper>(this, _log);
            var updated = updater.AddOrUpdateBindings(identifiers, bindingOptions, allIdentifiers, oldCertificate);

            if (updated > 0)
            {
                _log.Information("Committing {count} {type} binding changes to IIS while updating site {site}", updated, "https", bindingOptions.SiteId);
                Commit();
            }
            else
            {
                _log.Information("No bindings have been changed while updating site {site}", bindingOptions.SiteId);
            }
        }