}\r
\r
#endregion\r
-#if NET_3_5\r
void AppendResourceScriptContents (StringWriter sw, CompositeEntry entry)\r
{\r
if (entry.Assembly == null || entry.Attribute == null || String.IsNullOrEmpty (entry.NameOrPath))\r
if (notifyScriptLoaded)\r
OutputScriptLoadedNotification (response.Output);\r
}\r
-#endif\r
void OutputScriptLoadedNotification (TextWriter writer)\r
{\r
writer.WriteLine ();\r
{\r
HttpRequest request = context.Request;\r
bool notifyScriptLoaded = request.QueryString ["n"] == "t";\r
-#if NET_3_5\r
List <CompositeEntry> compositeEntries = CompositeScriptReference.GetCompositeScriptEntries (request.RawUrl);\r
if (compositeEntries != null) {\r
SendCompositeScript (context, request, notifyScriptLoaded, compositeEntries);\r
return;\r
}\r
-#endif\r
EmbeddedResource res;\r
Assembly assembly; \r
SendEmbeddedResource (context, out res, out assembly);\r
rset = new ResourceManager (scriptResourceName, assembly).GetResourceSet (Threading.Thread.CurrentThread.CurrentUICulture, true, true);\r
}\r
catch (MissingManifestResourceException) {\r
-#if TARGET_JVM // GetResourceSet does not throw MissingManifestResourceException if ressource is not exists\r
- }\r
- if (rset == null) {\r
-#endif\r
if (scriptResourceName.EndsWith (".resources", RuntimeHelpers.StringComparison)) {\r
scriptResourceName = scriptResourceName.Substring (0, scriptResourceName.Length - 10);\r
rset = new ResourceManager (scriptResourceName, assembly).GetResourceSet (Threading.Thread.CurrentThread.CurrentUICulture, true, true);\r
}\r
-#if !TARGET_JVM\r
else\r
throw;\r
-#endif\r
}\r
if (rset == null)\r
break;\r
if (notifyScriptLoaded)\r
OutputScriptLoadedNotification (writer);\r
}\r
-#if NET_3_5\r
static void CheckIfResourceIsCompositeScript (string resourceName, ref bool includeTimeStamp)\r
{\r
bool isCompositeScript = resourceName.StartsWith (CompositeScriptReference.COMPOSITE_SCRIPT_REFERENCE_PREFIX, StringComparison.Ordinal);\r
{\r
return false;\r
}\r
-#endif\r
// TODO: add value cache?\r
static string GetScriptStringLiteral (string value)\r
{\r