WCF分层式架构图
WCF体系结构图
- 协定
- 服务运行时
- 消息传递
- 激活和承载
WCF通讯图
Proxy:
ServiceClient --> ChannelFactory --> IInputChannel / IOutputChannel --> (http)HttpWebRequest
主要层:
- Transaction
- Encoding
- Security
- 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