Esempio n. 1
0
        protected override void OnResume()
        {
            if (ContextHelper.IsElectronNET())
            {
                return;
            }

            WebApplicationFactory.ResetBlazorViewIfHttpPortChanged();
            WebApplicationFactory.StartWebServer();
        }
Esempio n. 2
0
        protected override void OnResume()
        {
            if (ContextHelper.IsElectronNET())
            {
                return;
            }

            bool needReload = WebApplicationFactory.ResetBlazorViewIfHttpPortChanged();

            WebApplicationFactory.StartWebServer();

            if (!needReload)
            {
                //As the previous event can fire a reload too, we just check that a reload is not already pending,
                //preventing to call the WebView reload twice
                WebApplicationFactory.NotifyEnsureBlazorAppLaunchedOrReload();
            }
        }
Esempio n. 3
0
 protected override void OnResume()
 {
     WebApplicationFactory.ResetBlazorViewIfHttpPortChanged();
     WebApplicationFactory.StartWebServer();
 }