服务器服务和 gui 的良好架构是什么? [英] What is a good architecture for a server service and gui?

查看:28
本文介绍了服务器服务和 gui 的良好架构是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在构建一个应用程序,允许用户通过电子邮件发送它们在计算机上执行一些命令.服务器将监视(拉取)一个或多个电子邮件帐户并开始通信会话.还涉及一些身份验证.我正在使用最新最好的 .net 技术.

I am building an app that allows users to execute some commands on a computer by sending them through email. The server will monitor (pull) one or more email accounts and start a communication session. Some authentication is also involved. I am using the latest and greatest .net technologies.

我正在考虑将服务器作为服务公开,但随后我无法使用 GUI 来允许用户配置密码和电子邮件帐户等内容.我怎样才能分开这些?

I am thinking to expose the server as a service but then I cannot have a GUI to allow the user to configure things like passwords and email accounts. How can I separate these?

其次,这些命令将是可插入的,并且应该提供自己的 GUI.我怎样才能合并这个?服务器进程应该能够使用命令功能,GUI 进程应该允许自定义.

And second, the commands will be pluginable and should provide their own GUI. How can I incorporate this? The server process should be able to use the command functionality and the GUI process should allow for customization.

推荐答案

我使用过 WCF,这是 Microsoft 当前用于实现 Web 服务和/或 SOA 的技术.您将创建一个桌面客户端或网页来调用 WCF 服务.WCF 服务将是您的服务器组件,桌面客户端或网页将是您的用户前端.

I have used WCF, which is Microsoft's current technology for implementing web services and/or SOA. You would create a desktop client or webpage that makes calls to the WCF service. The WCF service(s) would be your server component, and the desktop client or webpage would be your user frontend.

这篇关于服务器服务和 gui 的良好架构是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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