Persistent object in ASP.NET server memory
-
Hi friends, Its a while I am looking for a way to keep some object in ASP.NET server memory permanently without loosing it at Application_End event, Is there any way? - Mohammad --- "Art happens when you least expect it."
Write it to a persistent store in application_end, read it in application_start. Christian Graus - Microsoft MVP - C++
-
Write it to a persistent store in application_end, read it in application_start. Christian Graus - Microsoft MVP - C++
-
Its an interesting idea, but note that in my situation it is not a value type or a composite of value types, its an object that is doing something in its lifetime, and I want to keep it alive. --- "Art happens when you least expect it."
In that case, write it as a windows service ( the process that does this work ) Christian Graus - Microsoft MVP - C++
-
In that case, write it as a windows service ( the process that does this work ) Christian Graus - Microsoft MVP - C++
-
Thanks for your note; So it seems there is no way to do it without windows services? yes? By the way it is not possible to create a windows service in a web application on the fly, isn't it ? --- "Art happens when you least expect it."
Den2Fly wrote:
So it seems there is no way to do it without windows services? yes?
I doubt it. App end means what it says, your app is stopping.
Den2Fly wrote:
By the way it is not possible to create a windows service in a web application on the fly, isn't it ?
Do you mean start one running, or create one ? You can control one. You could just run any old process, the point of a service is that you can control it from your app. Christian Graus - Microsoft MVP - C++