随笔分类 -  WCF

摘要:关键词:WCF动态调用、动态调用WCF、WCF使用动态代理精简代码架构、使用反射执行WCF接口 代码地址: https://gitee.com/s0611163/DynamicWCF https://github.com/0611163/DynamicWCF DynamicWCF 介绍 动态WCF: 阅读全文
posted @ 2021-10-26 08:37 0611163 阅读(487) 评论(8) 推荐(1)
摘要:使用Castle.Core.dll实现,核心代码是使用Castle.DynamicProxy.ProxyGenerator类的CreateInterfaceProxyWithoutTarget方法动态创建代理对象 NuGet上面Castle.Core的下载量1.78亿之多 一、重构前的项目代码 重构 阅读全文
posted @ 2020-12-18 13:37 0611163 阅读(610) 评论(7) 推荐(1)
摘要:一、代码结构: 二、数据实体类: using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using System.Text; using Syste 阅读全文
posted @ 2017-12-15 15:25 0611163 阅读(1053) 评论(0) 推荐(0)
摘要:服务端是CS程序,客户端(调用者)是BS程序 一、代码结构: 二、服务接口Contract和实体类Domain INoticeService: using Domain; using System; using System.Collections.Generic; using System.Lin 阅读全文
posted @ 2017-07-26 12:23 0611163 阅读(489) 评论(0) 推荐(0)
摘要:需求:在同一台机子上,有一个B/S程序,和一个C/S程序(不要问为什么,事实就是这样),B/S程序需要主动和C/S程序通信(C/S程序主动与B/S程序通信的情况这里暂不讨论)。 下面以最快的速度写一个B/S程序和一个C/S程序实现,具体细节不解释,自己翻书看去。 一、建了两个工程,如下图所示... 阅读全文
posted @ 2015-08-21 14:10 0611163 阅读(619) 评论(0) 推荐(1)