IIS .NET隔夜进程 - 实施的最佳方式? [英] IIS .NET Overnight Process - best way to implement?

查看:78
本文介绍了IIS .NET隔夜进程 - 实施的最佳方式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨伙计



我已经退出IT游戏一段时间了,刚回来帮助一个非技术的朋友使用.NET 4.0网站,在Visual Studio 2010中开发,现在在2013年开发。



前一个开发人员在Global.asax中实现了一个计时器,每24小时运行一次逻辑,但这显然不是当网站未被使用时进程停止的最佳方式。



我需要创建的东西是在IIS服务器上创建不会中断的东西。从凌晨1点开始,它将使用LINQ读取数据库到SQL Server或Compact,生成统计信息,创建新数据库记录和发送电子邮件。然后一旦它完成它只需要坐在那里直到它重复该过程的同一时间。



我需要能够启用/禁用该过程。我应该说它托管在我无法完全控制IIS的共享服务器上。



我读过关于Web服务,WCF,REST等但不能确定给定方案的最佳方法。所有反馈意见赞赏!



谢谢



Paul ...

Hi Folks

I've been out of the IT game for some time and have just returned to help a non-technical friend with a .NET 4.0 website, developed in Visual Studio 2010 and now in 2013.

The previous developer implemented a timer in Global.asax to run some logic once every 24 hours but this is clearly not the best way as processes stop when the website isn't used.

What I need to achieve is to create something that will run without interruption on the IIS server. Overnight from 1am it will read the database using LINQ to either SQL Server or Compact, generate statistics, create new database records and send emails. Then once it's finished it just needs to sit there until the same time tomorrow when it repeats the process.

I need to be able to enable/disable the process. I should say its hosted on a shared server where I don't have full control of IIS.

I've read about Web Services, WCF, REST etc but cannot pinpoint the best approach given the scenario. All feedback appreciated!

Thanks

Paul ...

推荐答案

这篇关于IIS .NET隔夜进程 - 实施的最佳方式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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