如何在不打开浏览器的情况下从服务器运行功能 [英] How to run a function from the server without opening the browser

查看:113
本文介绍了如何在不打开浏览器的情况下从服务器运行功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望服务器在我的asp.net网站上运行一个函数而不需要我打开网页浏览器

I want the server to run a function on my asp.net website dailly without me necessary opening the web browser

推荐答案

如果我理解你想要的场景定期在服务器上运行一些代码。如果是这种情况,那么我认为Windows服务更适合。
If I understood your scenario you want to periodically run some code on the server.If this is the case then I think windows service is better suited.


check ASP.NET中的简单后台任务 [ ^ ]
check Easy Background Tasks in ASP.NET[^]


探索



http://www.hanselman.com/blog/HowToRunBackgroundTasksInASPNET.aspx [ ^ ]



https://github.com/StephenCleary/AspNetBackgroundTasks [ ^ ]





http://hangfire.io / [ ^ ]
Explore

http://www.hanselman.com/blog/HowToRunBackgroundTasksInASPNET.aspx[^]

https://github.com/StephenCleary/AspNetBackgroundTasks[^]


http://hangfire.io/[^]


这篇关于如何在不打开浏览器的情况下从服务器运行功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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