如果服务器停止工作asp.net的事件 [英] Event if server stop working asp.net

查看:128
本文介绍了如果服务器停止工作asp.net的事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好!有没有办法控制运行app en asp.net的服务器,停止工作或从网络断开连接。我有一个应用程序来显示服务器时间,但我需要显示另一件事,如果服务器停止工作。



谢谢。

Hello!, is there a way to control if the server where is running the app en asp.net, stop working or is disconect from the network. I have an app to show the server time but I need to show another thing if the server stop working.

Thanks.

推荐答案

不标准 - 整个想法是它是一个请求/响应过程,所以除非你的客户定期查询服务器没有连接,所以你无法判断服务器是否停止。



您可以随时设置计时器快速检查并查看它是否还活着?
Not as standard - the whole idea is that it's a request / response process, so unless your client queries the server on a regular interval there is no connection so you can't tell if the server stops.

You can always set a timer to do a quick check and see if it's alive?


这篇关于如果服务器停止工作asp.net的事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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