WCF
会飞的尼古拉斯
没有个性,但比较尿性
展开
-
WCF 订阅(Pub/Sub)服务,实现服务端调用客户端
1 服务端服务契约 using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using System.ServiceModel; using System.ServiceModel.Web; using System.Text; namespace WcfService { // NOTE: You can use the "Rename" comm原创 2020-11-16 14:38:49 · 345 阅读 · 0 评论 -
WCF callback
1 创建WCF服务 2 更改IService.cs using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using System.ServiceModel; using System.ServiceModel.Web; using System.Text; namespace WcfService { // NOTE: You can use t原创 2020-11-13 16:49:26 · 192 阅读 · 0 评论 -
wcf获取服务器返回的异常
使用FaultReason等类对象进行操作 服务器code: using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using System.ServiceModel; using System.Text; namespace WcfService1 { // NOTE: You can use the "Rename" command on th原创 2020-07-22 12:23:23 · 179 阅读 · 0 评论 -
IIS8 部署 WCF service
首先创建wcf service服务 新建一个服务,命名为IService4 using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using System.ServiceModel; using System.Text; namespace WcfService1 { // NOTE: You can use the "Rename" comma原创 2020-07-20 14:39:56 · 200 阅读 · 0 评论 -
wcf 数据协定
我们在做wcf开发时,经常用到复杂类作为参数的情况,也就是我们要用到的数据协定 服务端定义服务协定 using System; using System.Collections.Generic; using System.Linq; using System.ServiceModel; using System.Text; using System.Threading.Tasks; namespace wcf { [ServiceContract(Namespace = "demo", Name原创 2020-07-20 08:55:01 · 149 阅读 · 0 评论 -
wcf 宿主Windows service demo
https://blog.csdn.net/weixin_34007879/article/details/85938839 demo下载地址https://github.com/xdqt/wcf-windows-server.git转载 2019-06-13 15:32:09 · 274 阅读 · 0 评论 -
wcf初探,使用通道工厂完成wcf的调用
WCF相关的许多类型都位于System.ServiceModel中,因此需要先引用进来 创建一个控制台应用程序,定义服务接口 using System; using System.Collections.Generic; using System.Linq; using System.ServiceModel; using System.Text; using System.Threading.Tasks; namespace wcf { [ServiceContract(Namespace原创 2020-07-15 13:07:08 · 231 阅读 · 0 评论