在 Silverlight 中,它可以加载程序集 System.ServiceModel.Nettcp,但在 MonoTouch 中我找不到程序集。MonoTouch 是否支持 WCF nettcp 绑定?
BinaryMessageEncodingBindingElement messageEncoding = new BinaryMessageEncodingBindingElement();
System.ServiceModel.Channels.TcpTransportBindingElement tcpTransport = new TcpTransportBindingElement();
CustomBinding netTcpBinding = new CustomBinding(messageEncoding, tcpTransport);