I have some code that I cache on Application_Start Event and then I use it in a master page code behind file.
if my cache object is empty then I log it into my error log saying it was empty. I was thinking though it would be cool to have a check that would say something check the last time Application_Start Event started. I think this would be better than having a hard coded message saying it could possibly be the application_start was not fired.
Is there away to see when the last time Application_Start Event started?
最简单的方法是,每次application_start触发时都写入日志文件,对于最后一次触发,请检查日志中的最后/最新条目。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.