public void getCity_Process(int seqid, TProtocol iprot, TProtocol oprot) { getCity_args args = new getCity_args(); args.Read(iprot); iprot.ReadMessageEnd(); getCity_result result = new getCity_result(); try { result.Success = iface_.getCity(args.CityId, args.SearchText, args.Session); } catch (UserException ex) { result.Ex = ex; } catch (SessionException se) { result.Se = se; } oprot.WriteMessageBegin(new TMessage("getCity", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public void send_getCity(int cityId, string searchText, Session session) #endif { oprot_.WriteMessageBegin(new TMessage("getCity", TMessageType.Call, seqid_)); getCity_args args = new getCity_args(); args.CityId = cityId; args.SearchText = searchText; args.Session = session; args.Write(oprot_); oprot_.WriteMessageEnd(); #if SILVERLIGHT return oprot_.Transport.BeginFlush(callback, state); #else oprot_.Transport.Flush(); #endif }