在Windows Azure上使用quartz.net [英] using quartz.net on windows azure

查看:81
本文介绍了在Windows Azure上使用quartz.net的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在asp.net应用程序中使用quartz.net,当我在本地主机上运行时,quartz Scheduler可以工作,但是当我将该站点发布到Windows azure时,它不再起作用.任何帮助将非常感激.

I am using quartz.net in my asp.net app and the quartz scheduler works when I am running on my localhost but when I publish the site to windows azure it no longer works. Any help would be much appreciated.

推荐答案

问题不在于它没有在Azure网站上运行.问题是,azure正在使用UTC,而我的本地主机正在使用本地时间.由于我使用的是cron日程安排和本地时间,所以我没有看到调度程序启动.可以在不使用Web角色/工作者角色的情况下,在azure上运行quartz.net调度程序.这都可以在托管网站中完成.

The problem wasn't that it wasn't running on the azure site. The problem was that azure was using UTC and my localhost was using local time. Since I was using a cron schedule and local time I wasn't seeing the scheduler fire. It is possible to run a quartz.net scheduler on azure without using web role/worker roles. This can all be done within the hosting website.

这篇关于在Windows Azure上使用quartz.net的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆