简体   繁体   English

创建WCF服务时

[英]When Creating a WCF service

I have already a MVC-webapplication, I wounder should I create a new WCF Service Application or should I insert a service in same webapp under the folder "Model"? 我已经有一个MVC-web应用程序,我应该创建一个新的WCF服务应用程序,还是应该在同一Web应用程序的“模型”文件夹下插入服务?

What is the best solution? 最好的解决方案是什么?

If the WCF service is exposing models from your MVC project, I would stick it it the same project. 如果WCF服务正在从您的MVC项目中公开模型,那么我会将其保留在同一项目中。 If it has logic pertained to code outside the MVC solution, I would create a separate application. 如果它具有与MVC解决方案之外的代码有关的逻辑,我将创建一个单独的应用程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在MVC中使用WCF服务时出现的问题 - Issue when using WCF service in mvc 调用 WCF 服务时间歇性发生 CommunicationException - A intermittently occuring CommunicationException when calling a WCF service 创建asp.net MVC和WCF服务应用程序的建议方法 - Suggested approach for creating asp.net MVC and WCF service application WCF / 服务层 / 存储库层:从服务层返回 DTO? 并从返回的 DTO 在控制器中创建 ViewModel - WCF / Service Layer / Repository Layer: Returning DTO from Service layer? And creating ViewModel in Controller from the DTO returned 向WCF服务发出请求时如何触发MVC应用程序? - how to trigger mvc application when a request is made to wcf service? 在API后面抽象服务引用时管理WCF配置 - Managing WCF configuration when your service references are abstracted behind an API 在WCF服务中使用时,实体框架未检索值 - Entity Framework not retrieving values when used in WCF service 从同一服务器上的MVC调用WCF服务时出现SocketException - SocketException when calling WCF service from MVC on same server 在为客户端控制台应用程序使用WCF服务创建代理类时出错 - Getting Error in creating proxy classes for Client Console application to Consume WCF Service 如何保护WCF服务 - How to secure a WCF Service
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM