public void send_userSearch(UserSearchQuery query, Session session) #endif { oprot_.WriteMessageBegin(new TMessage("userSearch", TMessageType.Call, seqid_)); userSearch_args args = new userSearch_args(); args.Query = query; args.Session = session; args.Write(oprot_); oprot_.WriteMessageEnd(); #if SILVERLIGHT return(oprot_.Transport.BeginFlush(callback, state)); #else oprot_.Transport.Flush(); #endif }
public void userSearch_Process(int seqid, TProtocol iprot, TProtocol oprot) { userSearch_args args = new userSearch_args(); args.Read(iprot); iprot.ReadMessageEnd(); userSearch_result result = new userSearch_result(); try { result.Success = iface_.userSearch(args.Query, args.Session); } catch (SearchException ex) { result.Ex = ex; } catch (SessionException se) { result.Se = se; } oprot.WriteMessageBegin(new TMessage("userSearch", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public void userSearch_Process(int seqid, TProtocol iprot, TProtocol oprot) { userSearch_args args = new userSearch_args(); args.Read(iprot); iprot.ReadMessageEnd(); userSearch_result result = new userSearch_result(); try { result.Success = iface_.userSearch(args.Query, args.Session); } catch (SearchException ex) { result.Ex = ex; } catch (SessionException se) { result.Se = se; } oprot.WriteMessageBegin(new TMessage("userSearch", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public void send_userSearch(UserSearchQuery query, Session session) #endif { oprot_.WriteMessageBegin(new TMessage("userSearch", TMessageType.Call, seqid_)); userSearch_args args = new userSearch_args(); args.Query = query; args.Session = session; args.Write(oprot_); oprot_.WriteMessageEnd(); #if SILVERLIGHT return oprot_.Transport.BeginFlush(callback, state); #else oprot_.Transport.Flush(); #endif }