You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am writing a .net maui blazor hybrid application with a rcl shared library.
All pages are inside that rcl shared library.
Also in use is a SQLLite Database Instance which i created in
Mauiprogram.cs and have a class registered as a singleton with
that DB Instance.
Previous in that code part i copy the ReleaseDB by
using OpenAppPackageFileAsync to the LiveDB.
Inside my razor files i access that class and the database.
Working flawlessly and how it should be.
For some Reason i want to make a factoryreset.razor where i can
reload from the ReleaseDB to the LiveDB.
I can close all connections and Delete the LiveDB but the
problem is how can i restart or reload that singleton ?
I have nothing found what i can do Application.Current.Quit only
works in the net maui native library.
Also i have heard that its not good to close the application by
code since Apple does not like it?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am writing a .net maui blazor hybrid application with a rcl shared library.
All pages are inside that rcl shared library.
Also in use is a SQLLite Database Instance which i created in
Mauiprogram.cs and have a class registered as a singleton with
that DB Instance.
Previous in that code part i copy the ReleaseDB by
using OpenAppPackageFileAsync to the LiveDB.
Inside my razor files i access that class and the database.
Working flawlessly and how it should be.
For some Reason i want to make a factoryreset.razor where i can
reload from the ReleaseDB to the LiveDB.
I can close all connections and Delete the LiveDB but the
problem is how can i restart or reload that singleton ?
I have nothing found what i can do Application.Current.Quit only
works in the net maui native library.
Also i have heard that its not good to close the application by
code since Apple does not like it?
Beta Was this translation helpful? Give feedback.
All reactions