void CancelTokensInternal(User user) { // Expire user cache tokens _cacheManager.CancelTokens(this.GetType()); _cacheManager.CancelTokens(this.GetType(), ById, user.Id); _cacheManager.CancelTokens(this.GetType(), ByUsernameNormalized, user.NormalizedUserName); _cacheManager.CancelTokens(this.GetType(), ByUsername, user.UserName); _cacheManager.CancelTokens(this.GetType(), ByEmailNormalized, user.NormalizedEmail); _cacheManager.CancelTokens(this.GetType(), ByEmail, user.Email); _cacheManager.CancelTokens(this.GetType(), ByResetToken, user.ResetToken); _cacheManager.CancelTokens(this.GetType(), ByConfirmationToken, user.ConfirmationToken); _cacheManager.CancelTokens(this.GetType(), ByApiKey, user.ApiKey); // Expire user data cache tokens _cacheManager.CancelTokens(_userDataStore.GetType()); _cacheManager.CancelTokens(_userDataStore.GetType(), UserDataStore.ByUser, user.Id); // Expire user login tokens _cacheManager.CancelTokens(_platoUserLoginStore.GetType()); }