public void send_GetMeta(string url) #endif { oprot_.WriteMessageBegin(new TMessage("GetMeta", TMessageType.Call, seqid_)); GetMeta_args args = new GetMeta_args(); args.Url = url; args.Write(oprot_); oprot_.WriteMessageEnd(); #if SILVERLIGHT return(oprot_.Transport.BeginFlush(callback, state)); #else oprot_.Transport.Flush(); #endif }
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(); }