예제 #1
0
 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));
 }
예제 #2
0
 IEnumerable <string> DebugScriptUrls(string location)
 {
     return(scriptReferenceBuilder
            .GetRequiredModules()
            .Where(m => m.Location == location)
            .SelectMany(m => m.Resources)
            .Select(DebugScriptUrl));
 }