WCF分层式架构图

WCF体系结构图

  1. 协定
  2. 服务运行时
  3. 消息传递
  4. 激活和承载

 

WCF通讯图

Proxy:

ServiceClient  -->  ChannelFactory  -->  IInputChannel / IOutputChannel  -->  (http)HttpWebRequest

主要层:

    1. Transaction
    2. Encoding
    3. Security
    4. Transport

多个层次协议组合在一起称为一个协议栈,例如

BasicHttpBinding(预定义的协议栈)

System.ServiceModel.Channels.TextMessageEncodingBindingElement

System.ServiceModel.Channels.HttpTransportBindingElement  

NetTcpBinding

System.ServiceModel.Channels.TransactionFlowBindingElement (事务层)

System.ServiceModel.Channels.BinaryMessageEncodingBindingElement(2进制编码)

System.ServiceModel.Channels.WindowsStreamSecurityBindingElement(默认启用安全模式)

System.ServiceModel.Channels.TcpTransportBindingElement(Tcp传输)

NetMsmqBinding

System.ServiceModel.Channels.BinaryMessageEncodingBindingElement

System.ServiceModel.Channels.MsmqTransportBindingElemnt

 

posted @ 2020-01-11 15:04  vvf  阅读(333)  评论(0编辑  收藏  举报