private static void Initialize(string cacheServiceAddress, int maxCacheSize, int rollingExpiringWindowInMinutes) { cache = new bUtility.TokenCache.Implementation.DistributedSessionSecurityTokenCache( () => new PersistentLib.SqlServerFactory(cacheServiceAddress), () => bUtility.TokenCache.Extensions.GetSerializationSettings(), () => rollingExpiringWindowInMinutes); _internalCache = new RecentlyUsedSessionSecurityTokenCache(maxCacheSize); }
public TokenCacheController(IDistributedSessionSecurityTokenCache service) { Service = service; }