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

Rodrigo Kumpera kumpera at gmail.com
Tue Sep 24 22:02:32 UTC 2013


Mono doesn't support C++/CLI.


On Tue, Sep 24, 2013 at 4:10 PM, Yifeng <yifeng.zeng at ngsim.com> wrote:

> 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.
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-list/attachments/20130924/6c8727b4/attachment.html>


More information about the Mono-list mailing list