WCF中的ServiceHost初始化两种方式 .

WCF中的ServiceHost初始化两种方式 . 在宿主程序中初始化ServiceHost有直接写代码和使用配置文件两种方式。使用ServiceHost首先要引用System.ServiceModel 命名空间。 1 代码方式 using(ServiceHost host=new ServiceHost(typeof(HelloWordService))) { host.AddServiceEn
相关文章
相关标签/搜索