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

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

            try {
                iface_.updateSession(args.PlatformArgs, args.SessionKey, args.SessionValue, args.ExpireSeconds);
            } catch (org.soldier.platform.svr_platform.comm.ErrorInfo err) {
                result.Err = err;
            }
            oprot.WriteMessageBegin(new TMessage("updateSession", TMessageType.Reply, seqid));
            result.Write(oprot);
            oprot.WriteMessageEnd();
            oprot.Transport.Flush();
        }
Beispiel #2
0
        public void send_updateSession(org.soldier.platform.svr_platform.comm.PlatformArgs platformArgs, string sessionKey, byte[] sessionValue, int expireSeconds)
    #endif
        {
            oprot_.WriteMessageBegin(new TMessage("updateSession", TMessageType.Call, seqid_));
            updateSession_args args = new updateSession_args();

            args.PlatformArgs  = platformArgs;
            args.SessionKey    = sessionKey;
            args.SessionValue  = sessionValue;
            args.ExpireSeconds = expireSeconds;
            args.Write(oprot_);
            oprot_.WriteMessageEnd();
      #if SILVERLIGHT
            return(oprot_.Transport.BeginFlush(callback, state));
      #else
            oprot_.Transport.Flush();
      #endif
        }