WCF 学习文摘

WCF:Windows Communication Foundation html

一、概念框架

  WCF是一个用于搭建面向服务的框架,能够经过它从一个服务终端以异步消息的方式发送数据到其余服务;异步

  WCF是一个基于消息的通讯框架,采用基于终端(Endpoint)的通讯手段,终端由地址(Address)、绑定(Binding)和契约(Contract)三要素组成;post

  服务寄宿的目的就是开启一个进程,为WCF服务提供一个运行的环境;this

  松耦合是SOA的一个基本的特征,WCF应用中客户端和服务端的松耦合体如今客户端只需要了解WCF服务基本的描述,而无须知道具体的实现细节,就能够实现正常的服务调用;url

  WCF服务的描述经过元数据(Metadata)的形式发布出来,WCF中元数据的发布经过一个特殊的服务行为 ServiceMetadataBehavior 实现;code

   每一个WCF服务具备一个 *.svc 文件,部署于IIS站点中,对WCF服务的调用体如今对 *.svc 文件的访问上,文件仅包含一个ServiceHost指令(Directive),该指令具备一个必须的Service属性和一些可选的属性;htm

 

二、特性blog

三、实现进程

四、参考资料  

  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.ilso 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.

相关文章
相关标签/搜索