in .net build Native App,you may want to save some data in local, so you can use this package to save data in local.
Name | Version | Download |
---|---|---|
NativeAppStore |
in many ui framework, exit hooks many cannot must be invoke (like anrdoid),so you may need give the save decision to user,or global exception catcher to save stores.
or if you have any ideas,Welcome to create this rep Issues
- Add Package Reference
NativeAppStore
- Add Services
services.AddStores(GetType().Assembly, opt => { opt.EnabledCreatorStoreLoad = true; });
- Create Store
public class MainWindowStore : StoreBase
{
}
- To Save Store On App Exit Or Global Exception Catch
// that will save all stores
StoreSaveExecutor.SaveAllStores();
// or invoke store save
store.SaveStore();
- Desktop
- Windows
- Mac
- Linux
- Mobile
- Android
- iOS
WebAssembly
- Desktop
- Windows
- Mac
- Windows
- Mobile
- Android
- iOS
- WPF
- Winform
You can check out the full license here
This project is licensed under the terms of the MIT license.