Web API(MVC)在浏览器窗口关闭时保持运行 [英] Web API(MVC) to keep running when Browser Window close

查看:68
本文介绍了Web API(MVC)在浏览器窗口关闭时保持运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

即使关闭浏览器窗口,我也希望Web API(MVC)继续运行.有什么办法吗?

I want Web API(MVC) to keep running even when i close my Browser Window. Is there any way to do this?

推荐答案

听起来这个问题是关于Visual Studio的IIS Express启动和停止链接到浏览器的问题.默认情况下,存在关闭浏览器窗口时停止调试器"的设置.如果您仅运行纯Web API且不需要浏览器,则在调试时,通常会关闭浏览器,因为这是不必要的页面.如果是这种情况,只需检查该设置并将其关闭.

It sounds like this question is talking about Visual Studio's IIS Express starting and stopping being linked to the Browser. By default, there is a setting for "Stop debugger when browser window is closed." If you're just running a pure Web API and don't need a browser, then when you debug, you typically close the browser because it's an unnecessary page. If that's the case, just check that setting and turn it off.

这篇关于Web API(MVC)在浏览器窗口关闭时保持运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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