Example #1
0
        private void Initialize(string cacheServiceAddress, int maxCacheSize, int purgeIntervalMinutes)
        {
            cache = new bUtility.TokenCache.Implementation.DistributedTokenReplayCache(
                () => { return(new PersistentLib.SqlServerFactory(cacheServiceAddress)); });

            _purgeInterval = TimeSpan.FromMinutes(purgeIntervalMinutes);

            _internalCache = new DefaultTokenReplayCache(maxCacheSize, _purgeInterval != TimeSpan.Zero ? _purgeInterval : DefaultTokenReplayCache.DefaultTokenReplayCachePurgeInterval);
        }
Example #2
0
 public TokenReplayCacheController(IDistributedTokenReplayCache service)
 {
     Service = service;
 }