public void GetSiteID_Process(int seqid, TProtocol iprot, TProtocol oprot) { GetSiteID_args args = new GetSiteID_args(); args.Read(iprot); iprot.ReadMessageEnd(); GetSiteID_result result = new GetSiteID_result(); try { result.Success = iface_.GetSiteID(args.Request); } catch (CBT.GEP.Thrift.Common.ThriftException te) { result.Te = te; } oprot.WriteMessageBegin(new TMessage("GetSiteID", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public GetSiteIDResponse recv_GetSiteID() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } GetSiteID_result result = new GetSiteID_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return result.Success; } if (result.__isset.te) { throw result.Te; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "GetSiteID failed: unknown result"); }