Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public TokenCacheController(IDistributedSessionSecurityTokenCache service)
 {
     Service = service;
 }