摘要:
问题:Timer不能持续执行,如果长时间没有访问,就会被IIs自动回收。造成一些定时作业无法完成。解决方式1:改用windows服务或是winform方式解决方式2:在Application_End事件模拟加载网站页面,唤醒要被回收的资源private const string DummyPageUrl = "http://localhost/Index.aspx";//可访问的页面private const string DummyCacheItemKey = "Du";// 注册一缓存条目在5分钟内到期,到期后触发的调事件 private void 阅读全文
posted @ 2014-02-18 16:47
erictanghu
阅读(1413)
评论(0)
推荐(0)

浙公网安备 33010602011771号