有上MVC4网站continously运行一个后台进程 [英] Have a background process running continously on an MVC4 website

查看:165
本文介绍了有上MVC4网站continously运行一个后台进程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个ASP.NET网站MVC4运行,现在我需要某种那不断将运行后台任务。但是,这甚至可能吗?

I have an ASP.NET MVC4 website running and now i need some sort of background task that is continously running. But is this even possible?

该网站MVC4是一种通知系统。其他网站可以注册一个本网站上的回调网​​址及本网站应触发指定的时间间隔的回调URL。因此,每隔一小时的例子。

The MVC4 website is a sort of notifying system. Other websites can register a Callback URL on this website and this website should trigger that callback URL for a specified interval. So, for every hour for example.

通常我的网站code,当我访问一个页面才会有效。但是,为了使这项工作,我需要一种方法让我的ASP.NET的网站在后台运行continously。因此,它可以做了检查,并在必要时发出HTTP调用。

Normally the code of my website only becomes active when I visit a page. But in order to make this work I need a way to have my ASP.NET website to run in the background continously. So it can do its checks and make an HTTP call when necessary.

不过,其他网站可以通过通过 HTTP Web请求注册自己的回调网​​址,而不是很重要一个插座。

It's important though that other websites can register their own Callback url through an http web request, and not through a socket.

是这样的事情有可能在一个ASP.NET MVC Web应用程序?还是我需要一个不同的方法?

Is something like this possible in an ASP.NET MVC web application? Or do I need a different approach?

推荐答案

检查了这一点:的在ASP.NET MVC 易后台任务

Check this out: Easy Background Tasks in ASP.NET MVC

这篇关于有上MVC4网站continously运行一个后台进程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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