简体   繁体   中英

Does MonoTouch support the wcf nettcp binding?

In Silverlight, it can load the assembly System.ServiceModel.Nettcp, but in MonoTouch I cannot find the assembly. Does MonoTouch support the WCF nettcp binding?

BinaryMessageEncodingBindingElement messageEncoding = new BinaryMessageEncodingBindingElement();
System.ServiceModel.Channels.TcpTransportBindingElement tcpTransport = new TcpTransportBindingElement();
CustomBinding netTcpBinding = new CustomBinding(messageEncoding, tcpTransport);

MonoTouch does not ship with a System.ServiceModel.Nettcp.dll assembly.

That was not part of the Silverlight core assemblies for Silverlight 2-4 (ie that Moonlight implemented and shipped).

Note: Maybe it's one of the extra SDK assemblies that Microsoft allowed developer to redistribute (ie it was not installed with Silverlight itself but with SL-based application .xap). In such case you might want to try this assembly with MonoTouch to see if it works (since such case generally worked with Moonlight).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM