public async Task <bool> LoadApplicationScript(string bundle, string sourceUrl) { Reset(); _modules = _moduleLoader.Load(this, _assemblyProvider.Assemblies()).ToList(); _modules.Apply(m => m.Instance.Initialize(this)); System.Diagnostics.Debug.WriteLine("Executor Setup"); _executor.Setup(); System.Diagnostics.Debug.WriteLine("Injecting Modules"); InjectModules(); System.Diagnostics.Debug.WriteLine("Executing Script"); await _executor.Execute(bundle, sourceUrl); System.Diagnostics.Debug.WriteLine("flushing"); var results = await _executor.ExecuteJSCall("BatchedBridge", "flushedQueue", null); HandleBuffer(results); _timer.Enabled = true; return(true); }