[英]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.