I noticed that Controller object is creating each time when I call method in Controller class in ASP.NET MVC. So any my object existing only during 1 request. But other request will create another object. So I need to create object which will exist during Web site is running(Something like daemon). Is it possible to do such thing in one website without external services?
Share
You can implement through different ways.
Using Application object.
Putting the object in cache.
Use a singleton approach.
I personally suggest the last approach.