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(); } }
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(); } }
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); }