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

浙公网安备 33010602011771号