2012-09-13 120 views
1

在Silverlight中,它可以加載程序集System.ServiceModel.Nettcp,但在MonoTouch中找不到程序集。 MonoTouch支持WCF nettcp綁定嗎?MonoTouch是否支持wcf nettcp綁定?

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

回答

1

MonoTouch沒有附帶System.ServiceModel.Nettcp.dll組件。

這不是Silverlight的組成部分核心組件用於Silverlight 2-4(即月光實施和運輸)。

注:也許這是額外 SDK組件,微軟允許開發人員重新分配的一個(即未與Silverlight的本身,而是基於SL-應用程序的.xap文件安裝)。在這種情況下,您可能想要使用MonoTouch嘗試此程序集以查看它是否有效(因爲這種情況通常與Moonlight一起使用)。

+0

是否將程序集添加到Monotouch中解決了問題? – Omtara