开发者

Build thrift dll for use in Windows Phone 7 application

开发者 https://www.devze.com 2023-01-20 17:07 出处:网络
Pretty straight forward question: How do I build a thrift dll for use in a Windows Phone 7 applica开发者_JS百科tion?I\'m assuming you mean a Thrift client as a server wouldn\'t make a lot of sense on

Pretty straight forward question: How do I build a thrift dll for use in a Windows Phone 7 applica开发者_JS百科tion?


I'm assuming you mean a Thrift client as a server wouldn't make a lot of sense on a phone.

Regardless, a quick scan of the white paper makes me think you can't as it requires use of sockets and these are not available to developers in WP7.

Beyond that it would be a case of writing an implementation of the interface specified by Thrift.
I know that is a very vague answer but it's a very vague question.


I've written out step-by-step instructions on making the Thrift runtime work on WP7, and on changing the C# generator to generator WP7 compatible bindings:

http://damianblog.com/2011/01/11/generating-silverlight-windows-phone-compatible-thrift-proxies/

At some point I want to submit the changes back to the Apache project - when I have some time ...

0

精彩评论

暂无评论...
验证码 换一张
取 消