public override void Remove(SessionSecurityTokenCacheKey key) { if (key == null) { throw new ArgumentNullException("key"); } inner.Remove(key); tokenCacheRepository.Remove(key.ToString()); }
public override void Remove(SessionSecurityTokenCacheKey key) { // Completely removing from the memory cache is difficult, since either we have to forego memory caching or distribute the memory // cache (remove it on all nodes). // Since this cache is only intended for web scenarios, we assume that the client will purge the key, making the clearing // of the memory cache less essential. Log.DebugFormat("Removing token key {0} from local machine cache (it will still exist on any other nodes)", key); m_MemoryCache.Remove(key); Log.DebugFormat("Removing token key {0} from persistent store", key); var cacheKey = key; m_SessionSecurityTokenStore.RemoveTokenFromStore(cacheKey); }
public void RemoveContext(System.Xml.UniqueId contextId, System.Xml.UniqueId generation) { SessionSecurityTokenCacheKey key = new SessionSecurityTokenCacheKey(_claimsHandler.EndpointId, contextId, generation); _tokenCache.Remove(key); }
public void Remove(string endpointId, string contextId, string keyGeneration) { internalCache.Remove(new SessionSecurityTokenCacheKey(endpointId, GetContextId(contextId), GetKeyGeneration(keyGeneration))); }