public void send_upload(string id, byte[] pdf) #endif { oprot_.WriteMessageBegin(new TMessage("upload", TMessageType.Call, seqid_)); upload_args args = new upload_args(); args.Id = id; args.Pdf = pdf; args.Write(oprot_); oprot_.WriteMessageEnd(); #if SILVERLIGHT return(oprot_.Transport.BeginFlush(callback, state)); #else oprot_.Transport.Flush(); #endif }
public void upload_Process(int seqid, TProtocol iprot, TProtocol oprot) { upload_args args = new upload_args(); args.Read(iprot); iprot.ReadMessageEnd(); upload_result result = new upload_result(); try { result.Success = iface_.upload(args.Id, args.Pdf); } catch (com.imd.common.thrift.ThriftException e) { result.E = e; } oprot.WriteMessageBegin(new TMessage("upload", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }