public ThriftS.IDL.ThriftSResponse recv_Process() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } Process_result result = new Process_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return(result.Success); } if (result.__isset.badRequestException) { throw result.BadRequestException; } if (result.__isset.internalServerException) { throw result.InternalServerException; } if (result.__isset.invocationException) { throw result.InvocationException; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "Process failed: unknown result"); }
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(); }