示例#1
0
        public void send_Add(Customer customer)
#endif
        {
            oprot_.WriteMessageBegin(new TMessage("Add", TMessageType.Call, seqid_));
            Add_args args = new Add_args();

            args.Customer = customer;
            args.Write(oprot_);
            oprot_.WriteMessageEnd();
#if SILVERLIGHT
            return(oprot_.Transport.BeginFlush(callback, state));
      #else
            oprot_.Transport.Flush();
#endif
        }
示例#2
0
            public void send_Add(int userId, string userName)
      #endif
            {
                oprot_.WriteMessageBegin(new TMessage("Add", TMessageType.Call, seqid_));
                Add_args args = new Add_args();

                args.UserId   = userId;
                args.UserName = userName;
                args.Write(oprot_);
                oprot_.WriteMessageEnd();
        #if SILVERLIGHT
                return(oprot_.Transport.BeginFlush(callback, state));
        #else
                oprot_.Transport.Flush();
        #endif
            }
示例#3
0
            public void send_Add(Customer customer)
#endif
            {
                oprot_.WriteMessageBegin(new TMessage("Add", TMessageType.Call, seqid_));
                Add_args args = new Add_args();
                args.Customer = customer;
                args.Write(oprot_);
                oprot_.WriteMessageEnd();
#if SILVERLIGHT
      return oprot_.Transport.BeginFlush(callback, state);
      #else
                oprot_.Transport.Flush();
#endif
            }