如何使用c#连续监视进程并在asp.net中查找进程何时结束?

编程入门 行业动态 更新时间:2024-10-25 00:28:33
本文介绍了如何使用c#连续监视进程并在asp中查找进程何时结束?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

如何使用c#连续监控进程并在asp中查找进程何时结束?我已经启动了一个Windows服务进程并且它在一段时间后正在运行。但是我希望连续监视相同的内容并查找进程是否结束。

How to continuously monitor a process and find when the process is over in asp with c#?I have started a windows service process and its working after a while. But I want to monitor the same continuosly and find whether the process is over.

推荐答案

您可以使用登录EventLog管理事件源。并阅读您网站上的该日志,以监控该服务是否已记录其停止消息。 (或者您可以在自定义的持续时间后继续显示foreeach日志)。 管理事件日志阅读本文 [ ^ ] You may manage an event Source with log in EventLog. and read that log in your website to monitor if the service has logged its stop message or not. (or you may keep showing foreeach log after custom defined duration). To Manage Event Log Read this[^]

更多推荐

如何使用c#连续监视进程并在asp.net中查找进程何时结束?

本文发布于:2023-11-06 05:22:44,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1562811.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:进程   并在   如何使用   结束   net

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!