应用程序客户端代理设计

发布于 2024-09-18 19:41:58 字数 265 浏览 3 评论 0原文

我需要创建一个小应用程序,它将作为“代理”在我的客户端计算机上运行,​​它将定期与服务器检查某些任务。

我是否

  1. 将应用程序创建为具有配置界面的 Windows 服务?

  2. 创建一个将在系统托盘中运行的应用程序,并具有配置界面?

许多个月前,我读到 Windows 服务应用程序不应该有任何配置界面。我假设即使我创建了一个 Windows 服务,也必须有第二个应用程序作为配置界面与该服务交互,对吗?

I need to create a small app which will run on my client machines as "agent" which will periodically check in with a server for certain tasks.

Do I

  1. Create the app as a windows service with an interface for configurations?

  2. Create an app which will run in system tray, with an interface for configuration?

Many moons ago I read that windows service app should not have any configuration interface. I would assume that even if I do create a windows service, there will have to be a second app which interacts with the service as the interface for configuration, correct?

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

江南烟雨〆相思醉 2024-09-25 19:41:58

如果应用程序需要由没有管理员权限的用户启动和配置,那么您需要使用系统托盘方法,因为服务只能由管理员启动。否则,任何一种方法都有效。最佳方法取决于应用程序。

If the application needs to be started and configured by a user without administrator rights, then you would need to go with the system tray approach because a service can only be started by an administrator. Otherwise either approach would work. The best approach would depend on the application.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文