1 year ago
#300669
Alex
How to syncronize data (application settings) between app pool
I have a static class, containing vaious settings fon .NET web api 2 (mostly parameters, links, flags etc.). Those parameters are filled from XML - file on startup. The task is to make them changeable through website. As I understand it, when the app is running on the IIS App pool, it creates several independent threads (as in several running apps), so even if I change the setting in the file, no other thread will pick this change up.
The question: Is there a way to somehow notifty the entire app pool to re-read the settings from file, but do it once? Maybe with using a "last update date"?
c#
.net
asp.net-web-api2
system.web
0 Answers
Your Answer