コード例 #1
0
        private SessionStateStoreData DoGet(HttpContext context, string id, bool exclusive, out bool locked, out TimeSpan lockAge, out object lockId, out SessionStateActions actionFlags)
        {
            locked      = false;
            lockId      = null;
            lockAge     = TimeSpan.Zero;
            actionFlags = SessionStateActions.None;

            int timeout;
            var sessionStateItemCollection = new MemcachedSessionStateStore(MemcachedClient.Value).Get(id, out timeout);

            return(CreateLegitStoreData(context, sessionStateItemCollection, null, timeout));
        }
コード例 #2
0
        private SessionStateStoreData DoGet(HttpContext context, string id, bool exclusive, out bool locked, out TimeSpan lockAge, out object lockId, out SessionStateActions actionFlags)
        {
            locked = false;
            lockId = null;
            lockAge = TimeSpan.Zero;
            actionFlags = SessionStateActions.None;

            int timeout;
            var sessionStateItemCollection = new MemcachedSessionStateStore(MemcachedClient.Value).Get(id, out timeout);

            return CreateLegitStoreData(context, sessionStateItemCollection, null, timeout);
        }