Stateful Services
Intro
Stateful services are simple way of maintaining state across execution/restarts/etc. Essentially, you make your service a start
There are 3 requirements to having a stateful service
- The service must be a singleton
- The service must implement
System.ComponentModel.INotifyPropertyChanged
- The service properties you wish to persist must be get/set
- Your properties must be “simple” types or JSON serializable
And registering