hanssens / localstorage

LocalStorage for .NET - A simple and lightweight tool for persisting data in dotnet (core) apps.
MIT License
74 stars 17 forks source link

Handling file´s changes #32

Closed ghost closed 3 years ago

ghost commented 4 years ago

We can watch the file´s changes at runtime and reload the configuration like nJupiter.Configuration (deprecated project). With that, you don´t need to restart the application if any configuration changed or a new configuration was added. We can use FileSystemWatcher (System.IO).

hanssens commented 3 years ago

Thanks for the suggestion, @darianbenito. But I personally haven't found a need for an auto-refresh or auto-reload mechanism yet. Can you explain a case where this would be helpful?

Instead, my first thoughts are that it would make sense that the consuming application would implement a FileSystemWatcher on itself and refresh the localstorage accordingly.