Exemplo n.º 1
0
        /// <summary>
        /// Transform the received HTTP cookie to a stored request state instance.
        /// </summary>
        /// <param name="requestBase">Http Request to get the request state from.</param>
        public static StoredRequestState GetStoredRequestState(this HttpRequestBase requestBase)
        {
            if (requestBase == null)
            {
                throw new ArgumentNullException("requestBase");
            }

            return(Deserialize(Decrypt(CookieHandler.Read())));
        }