unsecapp 连接

发布于 2024-09-28 18:24:14 字数 241 浏览 0 评论 0原文

我正在使用 .NET 的 ManagementObject 和类似类在远程计算机上利用 WMI。一切都很好。但我担心我的应用程序每次表单启动时都会打开太多 unsecapp 连接。连接已建立且长时间未关闭。 这个应用程序的作用大约是使用 ManagementEventWatcher 订阅一些远程事件,调用它的 Start (大约有 10-15 个项目)。然后在表单关闭时,我对每个对象调用 Stop,然后调用 Dispose。您是否需要一些代码或者足以满足您的评论?

I'm utilizing WMI on a remote machine using .NET's ManagementObject and similar classes. Everything works great. But I have a concern about my app opening too many unsecapp connections every time form starts. Connections are establish and not closed for a long time.
What this app approximately does is subscribes to some remote events with ManagementEventWatcher, calls Start on it (there are about 10-15 items of it). Then on form close I call Stop on each of them and then Dispose. Do you need some code or that is sufficient for your comments?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文