Esempio n. 1
0
 public void deleteSession(int timeout, string sessionKey)
 {
     try
     {
         SessionDao.Client client = getSessionDaoStub(timeout);
         client.deleteSession(getPlatformArgs(), sessionKey);
     }
     catch (Exception e)
     {
         throw e;
     }
     finally
     {
         mTransport.Close();
     }
 }
Esempio n. 2
0
 public void updateSession(int timeout, string sessionKey, byte[] sessionValue, int expireSecond)
 {
     try
     {
         SessionDao.Client client = getSessionDaoStub(timeout);
         client.updateSession(getPlatformArgs(), sessionKey, sessionValue, expireSecond);
     }
     catch (Exception e)
     {
         throw e;
     }
     finally
     {
         mTransport.Close();
     }
 }
Esempio n. 3
0
 public byte[] getSession(int timeout, string sessionKey)
 {
     byte[] result = null;
     try
     {
         SessionDao.Client client = getSessionDaoStub(timeout);
         result = client.getSession(getPlatformArgs(), sessionKey);
     }
     catch (Exception e)
     {
         throw e;
     }
     finally
     {
         mTransport.Close();
     }
     return(result);
 }