public void GetTokenStatus_Process(int seqid, TProtocol iprot, TProtocol oprot) { GetTokenStatus_args args = new GetTokenStatus_args(); args.Read(iprot); iprot.ReadMessageEnd(); GetTokenStatus_result result = new GetTokenStatus_result(); try { result.Success = iface_.GetTokenStatus(args.Request); } catch (CBT.GEP.Thrift.Common.ThriftException te) { result.Te = te; } oprot.WriteMessageBegin(new TMessage("GetTokenStatus", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public GetTokenStatusResponse recv_GetTokenStatus() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } GetTokenStatus_result result = new GetTokenStatus_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, "GetTokenStatus failed: unknown result"); }