Constant constant variable asp.Net/C#
When I update the .dlls in my ASP.Net C.Net application, the transition is handled gracefully and the users are allowed to finish their requests before the code is switched to the new code.
My question is, are static variables reset when this is done or are they persisted via update (unless of course the static objects themselves are updated in the code)?
+1
source to share
2 answers
Yes, they are lost and re-created, the DLL makes the application domain stop and restart. All cache and other items are re-populated and generated as used / needed.
You should look at persistent storage if these values ββare to be persisted for any actual time period, as your AppDomain can and does get reloaded for many other reasons.
+4
source to share