public void GetMeta_Process(int seqid, TProtocol iprot, TProtocol oprot) { GetMeta_args args = new GetMeta_args(); args.Read(iprot); iprot.ReadMessageEnd(); GetMeta_result result = new GetMeta_result(); try { result.Success = iface_.GetMeta(args.Url); } catch (NetException netException) { result.NetException = netException; } catch (NotFoundException notFoundException) { result.NotFoundException = notFoundException; } catch (UnknownException unknownException) { result.UnknownException = unknownException; } catch (MetaNotFoundException metaNotFoundException) { result.MetaNotFoundException = metaNotFoundException; } oprot.WriteMessageBegin(new TMessage("GetMeta", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public OpenGraphMeta recv_GetMeta() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } GetMeta_result result = new GetMeta_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return(result.Success); } if (result.__isset.netException) { throw result.NetException; } if (result.__isset.notFoundException) { throw result.NotFoundException; } if (result.__isset.unknownException) { throw result.UnknownException; } if (result.__isset.metaNotFoundException) { throw result.MetaNotFoundException; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "GetMeta failed: unknown result"); }