所有WCF都有一个VS项目吗? [英] One VS Project for all WCFs?

查看:100
本文介绍了所有WCF都有一个VS项目吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是WCF的新手,我想问一问,是否可以将我的所有Web服务都放在一个Visual Studio项目中?还是我应该有一个限制?我说的是技术方面,性能方面等等.

I am new to WCF and I want to ask is it advisable or is itok to have all my web services in one Visual Studio project? or I should have a limit of that? I am talking about technical wise, performance wise, etc...

谢谢

Jassim

推荐答案

在我的选择中,可以在一个项目中创建WCF,是否可行取决于您的请求.

In my option, it is OK to create WCF in one project, and whether it is advisable depends on your request.

如果所有服务都是独立的,建议您在独立的项目中创建WCF.控制WCF的版本和发布很方便.一项服务发生故障将不会影响其他服务.

If all the services are independent, I would suggest you create WCF in independent projects. It is convenience to control the version of WCF and publish. One service broken down would not affect other service.

如果您要从另一服务调用一个服务,我建议您在一个项目中创建它们,而一个服务调用其他服务,则与直接dll调用相比,性能会受到影响.

If you will call one service from another service, I would suggest you create them in one project, one service calling other services, there is a performance hit compared with a direct dll call.

最好的问候,

爱德华


这篇关于所有WCF都有一个VS项目吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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