public void syncContacts_Process(int seqid, TProtocol iprot, TProtocol oprot) { syncContacts_args args = new syncContacts_args(); args.Read(iprot); iprot.ReadMessageEnd(); syncContacts_result result = new syncContacts_result(); try { result.Success = iface_.syncContacts(args.ReqSeq, args.LocalContacts); } catch (TalkException e) { result.E = e; } oprot.WriteMessageBegin(new TMessage("syncContacts", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public void send_syncContacts(int reqSeq, List<ContactModification> localContacts) #endif { oprot_.WriteMessageBegin(new TMessage("syncContacts", TMessageType.Call, seqid_)); syncContacts_args args = new syncContacts_args(); args.ReqSeq = reqSeq; args.LocalContacts = localContacts; args.Write(oprot_); oprot_.WriteMessageEnd(); #if SILVERLIGHT return oprot_.Transport.BeginFlush(callback, state); #else oprot_.Transport.Flush(); #endif }