internal void ScriptUnloaded(IScriptReference script) { OnScriptUnloaded?.Invoke(script); Broadcast("OnScriptUnloaded", script); }
private void EmitNativeScript(IScriptReference script) { using (var s = script.Assembly.GetManifestResourceStream(script.Key)) { if (null == s) { Log.Warning("native script '{0}' was not found.", script.Key); } else { if (Log.ShowScripts || Log.ShowCodeGeneration) { Log.Trace(" inline script '{0}' ...", script.Path); } var jsw = new JScriptWriter(); using (var reader = new StreamReader(s)) { jsw.WriteLine(reader.ReadToEnd()); } RewriteDeclaration(jsw); } } }
internal void ScriptUnloading(IScriptReference script) { OnScriptUnloading?.Invoke(script); }