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 ...
精彩评论