DownloadExternalCode() публичный Метод

Gathers the set of external script URIs, and asks the HttpVirtualFilesystem to download and cache the URIs. Calls the delegate when all downloads are complete.
public DownloadExternalCode ( System.Action onComplete ) : void
onComplete System.Action
Результат void
Пример #1
0
 /// <summary>
 /// Starts the dynamic application
 /// </summary>
 void DynamicApplication_Startup(object sender, StartupEventArgs e)
 {
     Settings.Parse(InitParams = NormalizeInitParams(e.InitParams));
     ScriptTags = new DynamicScriptTags(LanguagesConfig);
     XamlScriptTags.Load();
     LanguagesConfig.DownloadLanguages(AppManifest, () => {
         ScriptTags.DownloadExternalCode(() => {
             Engine = new DynamicEngine();
             if (Settings.ConsoleEnabled && LanguagesConfig.LanguagesUsed.Count > 0)
             {
                 Console = Repl.Show();
             }
             LanguageTypeExtensions.Load(Engine.LangConfig);
             ScriptTags.Run(Engine);
             Engine.Run(Settings.EntryPoint);
         });
     });
 }
Пример #2
0
 /// <summary>
 /// Starts the dynamic application
 /// </summary>
 void DynamicApplication_Startup(object sender, StartupEventArgs e) {
     Settings.Parse(InitParams = NormalizeInitParams(e.InitParams));
     ScriptTags = new DynamicScriptTags(LanguagesConfig);
     ScriptTags.DownloadHtmlPage(() => {
         ScriptTags.FetchScriptTags();
         XamlScriptTags.Load();
         LanguagesConfig.DownloadLanguages(AppManifest, () => {
             ScriptTags.DownloadExternalCode(() => {
                 Engine = new DynamicEngine();
                 if (HtmlPage.IsEnabled && Settings.ConsoleEnabled && LanguagesConfig.LanguagesUsed.Count > 0)
                     Console = Repl.Show();
                 LanguageTypeExtensions.Load(Engine.LangConfig);
                 if (HtmlPage.IsEnabled) ScriptTags.Run(Engine);
                 Engine.Run(Settings.EntryPoint);
             });
         });
     });
 }
Пример #3
0
 /// <summary>
 /// Starts the dynamic application
 /// </summary>
 void DynamicApplication_Startup(object sender, StartupEventArgs e) {
     Settings.Parse(InitParams = NormalizeInitParams(e.InitParams));
     ScriptTags = new DynamicScriptTags(LanguagesConfig);
     XamlScriptTags.Load();
     LanguagesConfig.DownloadLanguages(AppManifest, () => {
         ScriptTags.DownloadExternalCode(() => {
             Engine = new DynamicEngine();
             if (Settings.ConsoleEnabled)
                 Repl.Show();
             ScriptTags.Run(Engine);
             Engine.Run(Settings.EntryPoint);
         });
     });
 }