In my ASP.NET MVC3 application hosted in Windows Azure I want to know how many times the application has been restarted (so that I know the startup sequence is correct). So I need some kind of "variable" that I could "increment" from inside Application_Start()
but it should be stored in some persistent way because otherwise it will simply not survive the application restart. The storage needs to be per instance of application.
Of course I could use system registry or some temporary file but I guess there should be something better.
Is there anything in ASP.NET infrastructure that I could use for my scenario?