摘要:
有时我们需要将WCF的配置文件放在单独的配置文件中,而默认情况下WCF又是在web.config或app.config中去寻找服务配置。如果我们把配置文件放在另一个config文件中,如何让WCF知道呢?答案就是重写ServiceHost。在重写中告诉WCF配置文件的路径。 public class MyServiceHost:ServiceHost { private string ConfigPath =System.AppDomain.CurrentDomain.BaseDirectory+ "MyApp.config"; public MyServ... 阅读全文
摘要:
问:Hi, I am newbie to wcf programming and a little bit confused between WCF Service and WCF Data Service. Can someone please explain me these two service types. Can we use them alternatively or each one has its one well-defined specific area to use. Thanx in advance.答:WCF Services are operation centr 阅读全文