惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

N
Netflix TechBlog - Medium
Blog — PlanetScale
Blog — PlanetScale
月光博客
月光博客
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
爱范儿
爱范儿
量子位
博客园 - 聂微东
Engineering at Meta
Engineering at Meta
WordPress大学
WordPress大学
GbyAI
GbyAI
MyScale Blog
MyScale Blog
IT之家
IT之家
P
Proofpoint News Feed
M
MIT News - Artificial intelligence
The Cloudflare Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Hugging Face - Blog
Hugging Face - Blog
The Register - Security
The Register - Security
Microsoft Security Blog
Microsoft Security Blog
博客园_首页
MongoDB | Blog
MongoDB | Blog
F
Fortinet All Blogs
博客园 - 三生石上(FineUI控件)
Y
Y Combinator Blog
雷峰网
雷峰网
V
Visual Studio Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
Last Week in AI
Last Week in AI
博客园 - 叶小钗
D
DataBreaches.Net
B
Blog
B
Blog RSS Feed
大猫的无限游戏
大猫的无限游戏
aimingoo的专栏
aimingoo的专栏
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
The GitHub Blog
The GitHub Blog
云风的 BLOG
云风的 BLOG
Recent Announcements
Recent Announcements
阮一峰的网络日志
阮一峰的网络日志
小众软件
小众软件
腾讯CDC
T
Threat Research - Cisco Blogs
SecWiki News
SecWiki News
Martin Fowler
Martin Fowler
D
Docker
Cisco Talos Blog
Cisco Talos Blog
T
Tenable Blog
Webroot Blog
Webroot Blog
宝玉的分享
宝玉的分享

博客园 - ~在思考中沉淀~

VS2005中通过code snippet定制类模板 寻找合租的朋友;-) [晴,天气不错]咖啡罐上的灰尘 辛苦的周末~ 可怕的春运,烦人的火车票! RSS Reader\Workflow Lite\User Manager for Sharepoint以及一点想法 - ~在思考中沉淀~ 创建自定义的Visual Studio项模板 微软推出Microsoft Exchange Server Best Practices Analyzer Tool 有要Gmail的吗?;)[已结束!] 分析更新LastActivity的过程-补Who is online 科技对生活的影响 WhoIsOnline ;) - 解读CNForum源码中在线用户统计 创建VS.Net外接程序时遇到的问题 开始GMail之旅 .Net和Windows应用程序调试[更新至2004-12-29] 学习SQL Server全文索引 惊喜->监护期 悲哀的晚上 my代码分析器
结合Web Services和Windows Services定期执行Asp.Net代码
~在思考中沉淀~ · 2005-03-07 · via 博客园 - ~在思考中沉淀~

在Asp.Net中结合Timer和global.asax中的Application_OnStart事件可以实现在asp.net程序运行过程中定期执行某些任务(例如发送提醒邮件等等)的功能。
(如果有兴趣可以参见破宝的在 ASP.NET 中使用计时器(Timer)
但是这种实现方式Application事件的基础上的,如何能够定期执行Asp.net代码又不必application的支持呢?(例如:“...sending e-mail to selected users in the database every two hours, or regularly analyzing the data in the ASP.NET cache for application health monitoring”)
这篇文章(Combine Web and Windows Services to Run Your ASP.NET Code at Scheduled Intervals)给出了一种实现手段。
也就是使用Windows Services作为定时器,它只负责定期调用实现业务逻辑的Web Services,并且“a Web service can run in the same application context as the rest of your ASP.NET application, it can execute in the same context that your existing code expects.”
详细的内容还是见这篇文章吧~~