IEnumerable <string> DebugStylesheetUrls() { return(stylesheetReferenceBuilder .GetRequiredModules() .SelectMany(m => m.Resources) .Select(r => new { url = AppRelativeStylesheetUrl(r), hash = r.Hash.ToHexString() }) .Select(r => r.url + (r.url.Contains('?') ? "&" : "?") + r.hash)); }
IEnumerable <string> DebugScriptUrls(string location) { return(scriptReferenceBuilder .GetRequiredModules() .Where(m => m.Location == location) .SelectMany(m => m.Resources) .Select(DebugScriptUrl)); }