2017-06-26 4 views
0

In ASP.NET MVC Sie Werte im Anwendungsstatus speichern kann unter Verwendung:MVC Anwendungsstatus Lebensdauer

HttpContext.Current.Application["example"] = "test"; 

Wie hoch ist die Lebensdauer der Anwendungsstatus Griffe. Ich nehme an, wenn der App-Pool recycelt wird, wird es gelöscht. Wann sonst wird es klar?

Antwort

0

Wie auf this page angegeben es fünf Gründe, warum Ihre statischen Daten:

The pool decide that need to make a recompile. 
You open the app_offline.htm file 
You make manual restart of the pool 
The pool is reach some limits that you have define and make restart. 
For any reason you restart the iis, or the pool.