Beispiel #1
0
        public void kvset_Process(int seqid, TProtocol iprot, TProtocol oprot)
        {
            kvset_args args = new kvset_args();

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

            result.Success = iface_.kvset(args.Key, args.Value);
            oprot.WriteMessageBegin(new TMessage("kvset", TMessageType.Reply, seqid));
            result.Write(oprot);
            oprot.WriteMessageEnd();
            oprot.Transport.Flush();
        }
Beispiel #2
0
        public void send_kvset(string key, string @value)
    #endif
        {
            oprot_.WriteMessageBegin(new TMessage("kvset", TMessageType.Call, seqid_));
            kvset_args args = new kvset_args();

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