コード例 #1
0
        /// <summary>
        /// Override this method to create custom overridden userstate
        /// object instances.
        /// </summary>
        /// <returns></returns>
        protected virtual void CreateUserState()
        {
            // Grab the user's login information from FormsAuth            
            if (this.User.Identity != null && this.User.Identity is FormsIdentity)
                this.UserState = UserState.CreateFromFormsAuthTicket();
            else
                this.UserState = new UserState();

        }