将类库作为WCF托管 [英] Hosting a class library as WCF
本文介绍了将类库作为WCF托管的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个.net类库(名称为Math),我想使其成为wcf服务.我该如何进行.
我对项目结构进行了一些更改.
1.添加了System.service Model
参考.
2.添加了一个名为IMath
的接口.
3.添加了[ServiceContract]
& [OperationContract]
根据需要.
现在,我应该如何使用端点构建配置文件.
I have a .net class library(name Math),I want to make it a wcf service. How can I proceed with this.
I have made some changes to the project structure.
1. Added System.service Model
reference.
2. Added an Interface called IMath
.
3. Added [ServiceContract]
& [OperationContract]
as needed.
Now how should I build the configuration file with the end points.
推荐答案
如果有帮助,请参阅此链接...
Hi,
See this link if could help...
Add a WCF endpoint that is compatible with ASP.NET Web service clients in a configuration file
问候
Regards,
这篇关于将类库作为WCF托管的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文