[Mono-list] NetTcpBinding supported in C++/CLI?

Yifeng yifeng.zeng at ngsim.com
Tue Sep 24 20:10:19 UTC 2013


I'm using WCF in C++/CLI. I'm wondering if MONO supports NetTcpBinding in
C++/CLI.
Before I start to get into MONO, I just need some confirmation if it is
supported by MONO.
Any comment would be appreciated. Thanks.

some sample code, would these kind of WCF code supported using MONO?
Service:
host->AddServiceEndpoint(IService1::typeid, gcnew NetTcpBinding(),
L"net.tcp://localhost:6000/service");
host->Open();
NetTcpBinding^ binding = gcnew NetTcpBinding();
EndpointAddress^ address = gcnew
EndpointAddress(String::Format(L"net.tcp://localhost:6000/service",
Environment::MachineName));
ChannelFactory<IService1^>^ factory = gcnew
ChannelFactory<IService1^>(binding, address);
proxy = factory->CreateChannel();
	
Client:
NetTcpBinding^ binding = gcnew NetTcpBinding();
EndpointAddress^ address = gcnew
EndpointAddress(String::Format(L"net.tcp://localhost:6000/service",
Environment::MachineName));
ChannelFactory<IService1^>^ factory = gcnew
ChannelFactory<IService1^>(binding, address);
IService1^ proxy = factory->CreateChannel();



--
View this message in context: http://mono.1490590.n4.nabble.com/NetTcpBinding-supported-in-C-CLI-tp4660958.html
Sent from the Mono - General mailing list archive at Nabble.com.


More information about the Mono-list mailing list