Implement Xamarin thrift pcl

I am trying to find a way to use apache thrift in my Xamarin Forms application, but I could not handle it because sys.dll requires System.Web.dll and there is no mono application for System.Web.dll. Do you know a workaround for this?

Thanks..

+7
mono xamarin thrift
source share
1 answer

All in all, Thrift works great with Mono, so no problem. As you already found out, the problem starts where the limited possibilities of implementing the .NET framework for mobile devices end. As for your specific problem: there is a Windows Phone 7.x project file that has these dependencies:

  • Microsoft.Phone
  • Microsoft.Phone.Interop
  • System.Runtime.Serialization
  • System.Servicemodel.Web
  • System.windows
  • system
  • System.Core
  • System.xml
  • System.net

WinPhone7 * .csproj has, of course, limited features, for example. server code is unavailable for technical reasons. Compatibility is mainly based on the SILVERLIGHT definition, and yes, it may not be perfect, but Good Enough โ„ข works. You can try this, see how far it supports your needs, and what changes need to be made (if any).

There are no Xamarin-specific things in the code at the moment, but you know that this is open source, and we always appreciate requests for corrections, especially valuable ones like this. If you think you can contribute, join the mailing list and / or freenode #thrift IRC channel and ask for any support you need. We will be happy to assist you.

+1
source share

All Articles