Exemplo n.º 1
0
        public void addContacts_Process(int seqid, TProtocol iprot, TProtocol oprot)
        {
            addContacts_args args = new addContacts_args();

            args.Read(iprot);
            iprot.ReadMessageEnd();
            addContacts_result result = new addContacts_result();

            result.Success = iface_.addContacts(args.Contacts);
            oprot.WriteMessageBegin(new TMessage("addContacts", TMessageType.Reply, seqid));
            result.Write(oprot);
            oprot.WriteMessageEnd();
            oprot.Transport.Flush();
        }
Exemplo n.º 2
0
        public void send_addContacts(List <Contact> contacts)
#endif
        {
            oprot_.WriteMessageBegin(new TMessage("addContacts", TMessageType.Call, seqid_));
            addContacts_args args = new addContacts_args();

            args.Contacts = contacts;
            args.Write(oprot_);
            oprot_.WriteMessageEnd();
#if SILVERLIGHT
            return(oprot_.Transport.BeginFlush(callback, state));
#else
            oprot_.Transport.Flush();
#endif
        }