Example #1
0
        protected override void OnSleep()
        {
            if (ContextHelper.IsElectronNET())
            {
                return;
            }

            WebApplicationFactory.StopWebServer();
        }
Example #2
0
        protected override void OnSleep()
        {
            if (ContextHelper.IsElectronNET())
            {
                return;
            }

            switch (Device.RuntimePlatform)
            {
            case Device.Android:
                //There is a bug on Android in release mode that seem to prevent to stop or release port OnSleep
                //Avoiding to Stop the server OnSleep as the event seem to not be fully propagated
                break;

            default:
                WebApplicationFactory.StopWebServer();
                break;
            }
        }
Example #3
0
 protected override void OnSleep()
 {
     // Handle when your app sleeps
     WebApplicationFactory.StopWebServer();
 }
Example #4
0
 protected override void OnSleep()
 {
     WebApplicationFactory.StopWebServer();
 }