httpapplicationstate

Is HttpApplicationState.RemoveAll() thread safe?

荒凉一梦 提交于 2019-12-12 19:25:42
问题 In my asp.net application, i want to cache some data in the HttpApplicationState . My code to set the data looks like this: Application.Lock(); Application.Set("Name", "Value"); Application.UnLock(); When I read the documentation, it says that HttpApplicationState is implicitly thread safe. But on many blogs it's written that we should use Application.Lock() and Application.Unlock() while writing data to the HttpApplicationState . On the other hand, I could not find any documentation which