public void send_Process(ThriftS.IDL.ThriftSRequest request) #endif { oprot_.WriteMessageBegin(new TMessage("Process", TMessageType.Call, seqid_)); Process_args args = new Process_args(); args.Request = request; args.Write(oprot_); oprot_.WriteMessageEnd(); #if SILVERLIGHT return(oprot_.Transport.BeginFlush(callback, state)); #else oprot_.Transport.Flush(); #endif }
public void Process_Process(int seqid, TProtocol iprot, TProtocol oprot) { Process_args args = new Process_args(); args.Read(iprot); iprot.ReadMessageEnd(); Process_result result = new Process_result(); try { result.Success = iface_.Process(args.Request); } catch (ThriftS.IDL.BadRequestException badRequestException) { result.BadRequestException = badRequestException; } catch (ThriftS.IDL.InternalServerException internalServerException) { result.InternalServerException = internalServerException; } catch (ThriftS.IDL.InvocationException invocationException) { result.InvocationException = invocationException; } oprot.WriteMessageBegin(new TMessage("Process", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }