コード例 #1
0
        /// <summary>
        /// Removes all cached tokens for the specified user.
        /// </summary>
        /// <param name="user">instance of the user that needs to be removed</param>
        public void Remove(IUser user)
        {
            RequestContext requestContext = CreateRequestContext(Guid.Empty);

            if (user == null || UserTokenCache == null)
            {
                return;
            }

            UserTokenCache.Remove(user, requestContext);
        }