public void send_findContactsByPhone(THashSet<string> phones) #endif { oprot_.WriteMessageBegin(new TMessage("findContactsByPhone", TMessageType.Call, seqid_)); findContactsByPhone_args args = new findContactsByPhone_args(); args.Phones = phones; args.Write(oprot_); oprot_.WriteMessageEnd(); #if SILVERLIGHT return oprot_.Transport.BeginFlush(callback, state); #else oprot_.Transport.Flush(); #endif }
public void findContactsByPhone_Process(int seqid, TProtocol iprot, TProtocol oprot) { findContactsByPhone_args args = new findContactsByPhone_args(); args.Read(iprot); iprot.ReadMessageEnd(); findContactsByPhone_result result = new findContactsByPhone_result(); try { result.Success = iface_.findContactsByPhone(args.Phones); } catch (TalkException e) { result.E = e; } oprot.WriteMessageBegin(new TMessage("findContactsByPhone", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }