public void AddOrUpdateBindings(IEnumerable <string> identifiers, BindingOptions bindingOptions, byte[]?oldThumbprint) { var updater = new IISHttpBindingUpdater <MockSite, MockBinding>(this, _log); var updated = updater.AddOrUpdateBindings(identifiers, bindingOptions, oldThumbprint); if (updated > 0) { _log.Information("Committing {count} {type} binding changes to IIS", updated, "https"); } else { _log.Warning("No bindings have been changed"); } }
public void UpdateHttpSite(IEnumerable <Identifier> identifiers, BindingOptions bindingOptions, byte[]?oldCertificate = null, IEnumerable <Identifier>?allIdentifiers = null) { var updater = new IISHttpBindingUpdater <MockSite, MockBinding>(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); } else { _log.Information("No bindings have been changed while updating site {site}", bindingOptions.SiteId); } }