开发者

WCF static singleton loses its values

开发者 https://www.devze.com 2023-03-08 17:15 出处:网络
I have a wcf with a a开发者_如何转开发pplication global static variable.This variable loses all its values and resets?What could cause this to happen?How can I avoid it?If this WCF service is hosted i

I have a wcf with a a开发者_如何转开发pplication global static variable. This variable loses all its values and resets? What could cause this to happen? How can I avoid it?


If this WCF service is hosted in IIS, it is likely you are falling victim to automatic app pool recycling.

See the Recycling section at http://msdn.microsoft.com/en-us/library/bb332338.aspx#msdnwcfhc_topic5

0

精彩评论

暂无评论...
验证码 换一张
取 消