private List <string> GetHosts(IIISSite site) { return(site.Bindings.Select(x => x.Host.ToLower()). Where(x => !string.IsNullOrWhiteSpace(x)). Distinct(). ToList()); }
static string lookupKey(IIISSite site, IIISBinding binding) => site.Id + "#" + binding.BindingInformation.ToLower();