WCF技术内幕 第4章 (3)
4.2 从外部剖析WCF
地址
WCF接收基础结构依赖System.Uri类型去创建接收终结点。WCF发送基础结构依赖System.ServiceModel.EndpointAddress类型发送消息给最终接收者。
绑定
绑定是表示消息应用如何处理、发送和接收消息的主要方式。更确切地说,它是表示传输、WS-*协议、安全需求、事务需求和终结点的主要方式。WCF包含9种覆盖传输、WS-*协议、安全需求、事务需求的绑定。
所有的绑定类型都是System.ServiceModel.Channels.Binding的子类型,因此它们都有相同的属性。一个共同的属性就是它们维护着一个私有System.ServiceModel.Channels.BindingElement对象的列表。一个BindingElement是消息交换一个特定方面的抽象,像传输或WS-*协议。
C:\Users\v-xufeif>"C:\Users\v-xufeif\Documents\visual studio 2010\Projects\WcfApp5\WcfApp5\bin\Debug\WcfApp5.exe"Showing the binding elements for System.ServiceModel.BasicHttpBinding TextMessageEncodingBindingElement HttpTransportBindingElementShowing the binding elements for System.ServiceModel.NetNamedPipeBinding TransactionFlowBindingElement BinaryMessageEncodingBindingElement WindowsStreamSecurityBindingElement NamedPipeTransportBindingElementShowing the binding elements for System.ServiceModel.NetTcpBinding TransactionFlowBindingElement BinaryMessageEncodingBindingElement WindowsStreamSecurityBindingElement TcpTransportBindingElementShowing the binding elements for System.ServiceModel.WSDualHttpBinding TransactionFlowBindingElement ReliableSessionBindingElement SymmetricSecurityBindingElement CompositeDuplexBindingElement OneWayBindingElement TextMessageEncodingBindingElement HttpTransportBindingElementShowing the binding elements for System.ServiceModel.WSHttpBinding TransactionFlowBindingElement SymmetricSecurityBindingElement TextMessageEncodingBindingElement HttpTransportBindingElementShowing the binding elements for System.ServiceModel.NetMsmqBinding BinaryMessageEncodingBindingElement MsmqTransportBindingElementShowing the binding elements for System.ServiceModel.MsmqIntegration.MsmqIntegrationBinding MsmqIntegrationBindingElementShowing the binding elements for System.ServiceModel.WSFederationHttpBinding TransactionFlowBindingElement SymmetricSecurityBindingElement TextMessageEncodingBindingElement HttpTransportBindingElementShowing the binding elements for System.ServiceModel.NetPeerTcpBinding PnrpPeerResolverBindingElement BinaryMessageEncodingBindingElement PeerTransportBindingElement