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

查看:157
本文介绍了服务器服务和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天全站免登陆