Esempio n. 1
0
        public void addValue_Process(int seqid, TProtocol iprot, TProtocol oprot)
        {
            addValue_args args = new addValue_args();

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

            iface_.addValue(args.Value);
            oprot.WriteMessageBegin(new TMessage("addValue", TMessageType.Reply, seqid));
            result.Write(oprot);
            oprot.WriteMessageEnd();
            oprot.Transport.Flush();
        }
Esempio n. 2
0
        public void send_addValue(int @value)
    #endif
        {
            oprot_.WriteMessageBegin(new TMessage("addValue", TMessageType.Call, seqid_));
            addValue_args args = new addValue_args();

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