The binary type is supported in C# as well as any other type. We used to use roughly this technique during a proof of concept phase before converting more of our structures to Thrift, it should work fine. Let us know if you have any problems, but it sounds like a reasonable idea Jonathan (of course, these are completely unusable to non-.NET endpoints, but they can process the rest of the message just fine and ignore the .NET bytes).
Michael On Fri, Apr 3, 2009 at 11:31 AM, Bryan Duxbury <[email protected]> wrote: > Assuming that the binary type is well supported in C#, your idea certainly > sounds like the right idea. Maybe one of our C# people can chime in about > binary support? > > -Bryan > > On Apr 3, 2009, at 8:55 AM, Jonathan Marcus wrote: > >> Hi, >> >> I have a bunch of C# servers that need to talk to each other, and I'm >> using Thrift to handle the communication. My programs use their own objects >> internally, and I'd prefer to leave their structure out of my .thrift file. >> >> What would be the best way to pass these objects back and forth? They're >> all serializable, so I'm thinking that I should just convert them into a >> byte-array and put it into a 'binary' type, but I don't know if that type is >> fully supported in C#. >> >> Any thoughts/ideas? >> >> Thanks, >> Jonathan > >
