应用程序客户端代理设计
我需要创建一个小应用程序,它将作为“代理”在我的客户端计算机上运行,它将定期与服务器检查某些任务。
我是否
将应用程序创建为具有配置界面的 Windows 服务?
创建一个将在系统托盘中运行的应用程序,并具有配置界面?
许多个月前,我读到 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
Create the app as a windows service with an interface for configurations?
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果应用程序需要由没有管理员权限的用户启动和配置,那么您需要使用系统托盘方法,因为服务只能由管理员启动。否则,任何一种方法都有效。最佳方法取决于应用程序。
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.