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

推荐订阅源

酷 壳 – CoolShell
酷 壳 – CoolShell
H
Hacker News: Front Page
P
Palo Alto Networks Blog
T
ThreatConnect
Apple Machine Learning Research
Apple Machine Learning Research
博客园_首页
T
True Tiger Recordings
P
Privacy & Cybersecurity Law Blog
B
Blog
IT之家
IT之家
Last Week in AI
Last Week in AI
F
Full Disclosure
Hacker News: Ask HN
Hacker News: Ask HN
C
Comments on: Blog
Microsoft Azure Blog
Microsoft Azure Blog
C
Cybersecurity and Infrastructure Security Agency CISA
Microsoft Security Blog
Microsoft Security Blog
博客园 - 【当耐特】
N
News and Events Feed by Topic
NISL@THU
NISL@THU
腾讯CDC
雷峰网
雷峰网
Security Latest
Security Latest
李成银的技术随笔
M
Microsoft Research Blog - Microsoft Research
L
LangChain Blog
L
Lohrmann on Cybersecurity
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
C
Check Point Blog
Y
Y Combinator Blog
Recent Announcements
Recent Announcements
博客园 - Franky
N
News | PayPal Newsroom
V
V2EX
A
About on SuperTechFans
The Register - Security
The Register - Security
月光博客
月光博客
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Google Online Security Blog
Google Online Security Blog
MyScale Blog
MyScale Blog
Cisco Talos Blog
Cisco Talos Blog
Vercel News
Vercel News
WordPress大学
WordPress大学
C
Cyber Attacks, Cyber Crime and Cyber Security
The Hacker News
The Hacker News
IntelliJ IDEA : IntelliJ IDEA – the Leading IDE for Professional Development in Java and Kotlin | The JetBrains Blog
IntelliJ IDEA : IntelliJ IDEA – the Leading IDE for Professional Development in Java and Kotlin | The JetBrains Blog
爱范儿
爱范儿
A
Arctic Wolf
L
LINUX DO - 最新话题
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More

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

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.”
详细的内容还是见这篇文章吧~~