public static void Unload() { try { App.Current.Lake.GetComponent <ISettings>().Save(); } catch { } try { OpenFx.Unload(); } catch { } try { BasicBooter.Free(); } catch { } try { LoggingManager.Free(); } catch { } }
public static void Unload() { var mins = Convert.ToInt32((DateTime.Now - Process.GetCurrentProcess().StartTime).TotalMinutes); Analytics.TrackEvent("App Shutdown", new Dictionary <string, string>() { { "Run Time (mins)", mins.ToString() }, }); try { App.Current.Lake.GetComponent <ISettings>().Save(); } catch { } try { OpenFx.Unload(); } catch { } try { BasicBooter.Free(); } catch { } try { LoggingManager.Free(); } catch { } }
public void Unload() { try { if (Settings.Default.IsFirstLaunch && Settings.Default.GuidePassed) { Settings.Default.IsFirstLaunch = false; } Settings.Default.Save(); try { OpenFx.Unload(); } catch { } BasicBooter.Free(); //TaskKill.Kill("adb.exe"); } catch { } }
public void Unload() { try { if (Settings.Default.IsFirstLaunch && Settings.Default.GuidePassed) { Settings.Default.IsFirstLaunch = false; } Settings.Default.Save(); try { OpenFx.Unload(); } catch { } if (Adb.Server?.IsEnable == true) { Adb.Server.Kill(); TaskKill.Kill("adb.exe"); } } catch { } }
public void Unload() { try { if (Settings.Default.IsFirstLaunch && Settings.Default.GuidePassed) { Settings.Default.IsFirstLaunch = false; } Settings.Default.Save(); if (Bus.OpenFxObserver.Instance.IsLoaded) { OpenFx.Unload(); } if (Adb.Server.IsEnable) { Adb.Server.Kill(); TaskKill.Kill("adb.exe"); } } catch { } }