WCF中的ServiceHost初始化兩種方式 .

WCF中的ServiceHost初始化兩種方式 . 在宿主程序中初始化ServiceHost有直接寫代碼和使用配置文件兩種方式。使用ServiceHost首先要引用System.ServiceModel 命名空間。 1 代碼方式 using(ServiceHost host=new ServiceHost(typeof(HelloWordService))) { host.AddServiceEn
相關文章
相關標籤/搜索