public void getFileContents_Process(int seqid, TProtocol iprot, TProtocol oprot) { getFileContents_args args = new getFileContents_args(); args.Read(iprot); iprot.ReadMessageEnd(); getFileContents_result result = new getFileContents_result(); try { result.Success = iface_.getFileContents(args.AuthString, args.FileName); } catch (org.phybros.thrift.EAuthException aex) { result.Aex = aex; } catch (org.phybros.thrift.EDataException dex) { result.Dex = dex; } oprot.WriteMessageBegin(new TMessage("getFileContents", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public void send_getFileContents(string authString, string fileName) #endif { oprot_.WriteMessageBegin(new TMessage("getFileContents", TMessageType.Call, seqid_)); getFileContents_args args = new getFileContents_args(); args.AuthString = authString; args.FileName = fileName; args.Write(oprot_); oprot_.WriteMessageEnd(); #if SILVERLIGHT return oprot_.Transport.BeginFlush(callback, state); #else oprot_.Transport.Flush(); #endif }