예제 #1
0
        protected override void OnStart()
        {
            if (ContextHelper.IsElectronNET())
            {
                return;
            }

            WebApplicationFactory.StartWebServer();
        }
예제 #2
0
        protected override void OnResume()
        {
            if (ContextHelper.IsElectronNET())
            {
                return;
            }

            WebApplicationFactory.ResetBlazorViewIfHttpPortChanged();
            WebApplicationFactory.StartWebServer();
        }
예제 #3
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();
            }
        }
예제 #4
0
 protected override void OnResume()
 {
     WebApplicationFactory.StartWebServer();
 }
예제 #5
0
 protected override void OnStart()
 {
     // Handle when your app starts
     WebApplicationFactory.StartWebServer();
 }
예제 #6
0
 protected override void OnResume()
 {
     WebApplicationFactory.ResetBlazorViewIfHttpPortChanged();
     WebApplicationFactory.StartWebServer();
 }