WCF 学习文摘
2016-05-03 12:36
225 查看
WCF:Windows Communication Foundation
1、概念
WCF是一个用于搭建面向服务的框架,可以通过它从一个服务终端以异步消息的方式发送数据到其他服务;
WCF是一个基于消息的通信框架,采用基于终端(Endpoint)的通信手段,终端由地址(Address)、绑定(Binding)和契约(Contract)三要素组成;
服务寄宿的目的就是开启一个进程,为WCF服务提供一个运行的环境;
松耦合是SOA的一个基本的特征,WCF应用中客户端和服务端的松耦合体现在客户端只须要了解WCF服务基本的描述,而无须知道具体的实现细节,就可以实现正常的服务调用;
WCF服务的描述通过元数据(Metadata)的形式发布出来,WCF中元数据的发布通过一个特殊的服务行为 ServiceMetadataBehavior 实现;
每个WCF服务具有一个 *.svc 文件,部署于IIS站点中,对WCF服务的调用体现在对 *.svc 文件的访问上,文件仅包含一个ServiceHost指令(Directive),该指令具有一个必须的Service属性和一些可选的属性;
2、特性
3、实现
4、参考资料
What Is Windows Communication Foundation
Windows Communication Foundation
《我的WCF之旅》博文系列汇总
For Example my DLL located in D:/hiren/Test.dll
Step 2 : Now create il file using below command.
D:/hiren> ildasm /all /out=Test.il Test.dll
(this command generate code library)
Step 3 : Generate new Key for sign your project.
D:/hiren> sn -k mykey.snk
Step 4 : Now sign your library using ilasm command.
D:/hiren> ilasm /dll /key=mykey.snk Test.il
so after this step your assembly contains strong name and signed.
Jjust add reference this new assembly in your project and compile project its running now.
1、概念
WCF是一个用于搭建面向服务的框架,可以通过它从一个服务终端以异步消息的方式发送数据到其他服务;
WCF是一个基于消息的通信框架,采用基于终端(Endpoint)的通信手段,终端由地址(Address)、绑定(Binding)和契约(Contract)三要素组成;
服务寄宿的目的就是开启一个进程,为WCF服务提供一个运行的环境;
松耦合是SOA的一个基本的特征,WCF应用中客户端和服务端的松耦合体现在客户端只须要了解WCF服务基本的描述,而无须知道具体的实现细节,就可以实现正常的服务调用;
WCF服务的描述通过元数据(Metadata)的形式发布出来,WCF中元数据的发布通过一个特殊的服务行为 ServiceMetadataBehavior 实现;
每个WCF服务具有一个 *.svc 文件,部署于IIS站点中,对WCF服务的调用体现在对 *.svc 文件的访问上,文件仅包含一个ServiceHost指令(Directive),该指令具有一个必须的Service属性和一些可选的属性;
2、特性
3、实现
4、参考资料
What Is Windows Communication Foundation
Windows Communication Foundation
《我的WCF之旅》博文系列汇总
Steps to create strong named assembly
Step 1 : Run visual studio command prompt and go to directory where your DLL located.For Example my DLL located in D:/hiren/Test.dll
Step 2 : Now create il file using below command.
D:/hiren> ildasm /all /out=Test.il Test.dll
(this command generate code library)
Step 3 : Generate new Key for sign your project.
D:/hiren> sn -k mykey.snk
Step 4 : Now sign your library using ilasm command.
D:/hiren> ilasm /dll /key=mykey.snk Test.il
so after this step your assembly contains strong name and signed.
Jjust add reference this new assembly in your project and compile project its running now.
相关文章推荐
- Codeforces 630L-L. Cracking the Code【整数快速幂】
- 模拟器语言改为中文
- 系统分层与架构模型
- PAT1008数组元素循环右移问题 (20)
- oracle安装问题
- 5个开源项目
- C#中的Hook,即钩子,引用微软的文章,很有用的
- 5个开源项目
- Linux之线程:同步与互斥
- hive建表时对字段间分割符的限制
- TLB工作原理
- 《深入.NET平台和C# 编程》内测纠错记录
- 职场黑话
- 德邦证券项目:关联表
- PostgreSQL9.5 新特性
- 演讲
- Android群英传帝落篇——程序人生,路漫漫其修远兮,吾将上下而求索!
- 运用 BoxLayout 进行 Swing 控件布局
- Android群英传帝落篇——程序人生,路漫漫其修远兮,吾将上下而求索!
- LeetCode 164. Maximum Gap