Esempio n. 1
0
   public void updateSession(org.soldier.platform.svr_platform.comm.PlatformArgs platformArgs, string sessionKey, byte[] sessionValue, int expireSeconds)
   {
 #if !SILVERLIGHT
       send_updateSession(platformArgs, sessionKey, sessionValue, expireSeconds);
       recv_updateSession();
 #else
       var asyncResult = Begin_updateSession(null, null, platformArgs, sessionKey, sessionValue, expireSeconds);
       End_updateSession(asyncResult);
 #endif
   }
Esempio n. 2
0
   public void deleteToken(org.soldier.platform.svr_platform.comm.PlatformArgs platformArgs, string key)
   {
 #if !SILVERLIGHT
       send_deleteToken(platformArgs, key);
       recv_deleteToken();
 #else
       var asyncResult = Begin_deleteToken(null, null, platformArgs, key);
       End_deleteToken(asyncResult);
 #endif
   }
Esempio n. 3
0
   public string getToken(org.soldier.platform.svr_platform.comm.PlatformArgs platformArgs, string key)
   {
 #if !SILVERLIGHT
       send_getToken(platformArgs, key);
       return(recv_getToken());
 #else
       var asyncResult = Begin_getToken(null, null, platformArgs, key);
       return(End_getToken(asyncResult));
 #endif
   }
Esempio n. 4
0
   public string checkToken(org.soldier.platform.svr_platform.comm.PlatformArgs platformArgs, string token)
   {
 #if !SILVERLIGHT
       send_checkToken(platformArgs, token);
       return(recv_checkToken());
 #else
       var asyncResult = Begin_checkToken(null, null, platformArgs, token);
       return(End_checkToken(asyncResult));
 #endif
   }
Esempio n. 5
0
   public void updateToken(org.soldier.platform.svr_platform.comm.PlatformArgs platformArgs, string key, string token, int expireSeconds)
   {
 #if !SILVERLIGHT
       send_updateToken(platformArgs, key, token, expireSeconds);
       recv_updateToken();
 #else
       var asyncResult = Begin_updateToken(null, null, platformArgs, key, token, expireSeconds);
       End_updateToken(asyncResult);
 #endif
   }
Esempio n. 6
0
   public byte[] getSession(org.soldier.platform.svr_platform.comm.PlatformArgs platformArgs, string sessionKey)
   {
 #if !SILVERLIGHT
       send_getSession(platformArgs, sessionKey);
       return(recv_getSession());
 #else
       var asyncResult = Begin_getSession(null, null, platformArgs, sessionKey);
       return(End_getSession(asyncResult));
 #endif
   }
Esempio n. 7
0
        public void send_deleteSession(org.soldier.platform.svr_platform.comm.PlatformArgs platformArgs, string sessionKey)
    #endif
        {
            oprot_.WriteMessageBegin(new TMessage("deleteSession", TMessageType.Call, seqid_));
            deleteSession_args args = new deleteSession_args();

            args.PlatformArgs = platformArgs;
            args.SessionKey   = sessionKey;
            args.Write(oprot_);
            oprot_.WriteMessageEnd();
      #if SILVERLIGHT
            return(oprot_.Transport.BeginFlush(callback, state));
      #else
            oprot_.Transport.Flush();
      #endif
        }
Esempio n. 8
0
        public void send_checkToken(org.soldier.platform.svr_platform.comm.PlatformArgs platformArgs, string token)
    #endif
        {
            oprot_.WriteMessageBegin(new TMessage("checkToken", TMessageType.Call, seqid_));
            checkToken_args args = new checkToken_args();

            args.PlatformArgs = platformArgs;
            args.Token        = token;
            args.Write(oprot_);
            oprot_.WriteMessageEnd();
      #if SILVERLIGHT
            return(oprot_.Transport.BeginFlush(callback, state));
      #else
            oprot_.Transport.Flush();
      #endif
        }
Esempio n. 9
0
        public void Read(TProtocol iprot)
        {
            TField field;

            iprot.ReadStructBegin();
            while (true)
            {
                field = iprot.ReadFieldBegin();
                if (field.Type == TType.Stop)
                {
                    break;
                }
                switch (field.ID)
                {
                case 1:
                    if (field.Type == TType.Struct)
                    {
                        PlatformArgs = new org.soldier.platform.svr_platform.comm.PlatformArgs();
                        PlatformArgs.Read(iprot);
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 2:
                    if (field.Type == TType.String)
                    {
                        Key = iprot.ReadString();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                default:
                    TProtocolUtil.Skip(iprot, field.Type);
                    break;
                }
                iprot.ReadFieldEnd();
            }
            iprot.ReadStructEnd();
        }
Esempio n. 10
0
        public void send_updateToken(org.soldier.platform.svr_platform.comm.PlatformArgs platformArgs, string key, string token, int expireSeconds)
    #endif
        {
            oprot_.WriteMessageBegin(new TMessage("updateToken", TMessageType.Call, seqid_));
            updateToken_args args = new updateToken_args();

            args.PlatformArgs  = platformArgs;
            args.Key           = key;
            args.Token         = token;
            args.ExpireSeconds = expireSeconds;
            args.Write(oprot_);
            oprot_.WriteMessageEnd();
      #if SILVERLIGHT
            return(oprot_.Transport.BeginFlush(callback, state));
      #else
            oprot_.Transport.Flush();
      #endif
        }
Esempio n. 11
0
 public IAsyncResult send_updateToken(AsyncCallback callback, object state, org.soldier.platform.svr_platform.comm.PlatformArgs platformArgs, string key, string token, int expireSeconds)
Esempio n. 12
0
 public IAsyncResult send_updateSession(AsyncCallback callback, object state, org.soldier.platform.svr_platform.comm.PlatformArgs platformArgs, string sessionKey, byte[] sessionValue, int expireSeconds)
Esempio n. 13
0
 public IAsyncResult send_checkToken(AsyncCallback callback, object state, org.soldier.platform.svr_platform.comm.PlatformArgs platformArgs, string token)
Esempio n. 14
0
 public IAsyncResult send_deleteSession(AsyncCallback callback, object state, org.soldier.platform.svr_platform.comm.PlatformArgs platformArgs, string sessionKey)
Esempio n. 15
0
 public IAsyncResult Begin_checkToken(AsyncCallback callback, object state, org.soldier.platform.svr_platform.comm.PlatformArgs platformArgs, string token)
 {
     return(send_checkToken(callback, state, platformArgs, token));
 }
Esempio n. 16
0
 public IAsyncResult Begin_getSession(AsyncCallback callback, object state, org.soldier.platform.svr_platform.comm.PlatformArgs platformArgs, string sessionKey)
 {
     return(send_getSession(callback, state, platformArgs, sessionKey));
 }
Esempio n. 17
0
 public IAsyncResult Begin_deleteToken(AsyncCallback callback, object state, org.soldier.platform.svr_platform.comm.PlatformArgs platformArgs, string key)
 {
     return(send_deleteToken(callback, state, platformArgs, key));
 }
Esempio n. 18
0
 public IAsyncResult Begin_updateToken(AsyncCallback callback, object state, org.soldier.platform.svr_platform.comm.PlatformArgs platformArgs, string key, string token, int expireSeconds)
 {
     return(send_updateToken(callback, state, platformArgs, key, token, expireSeconds));
 }