Exemplo n.º 1
0
        public TimedDictionary()
        {
            _dict = new ConcurrentDictionary <TKey, TimedValue <TValue> >();

            CleanUpPeriod = TimeSpan.FromSeconds(1);
            TimedDictionaryWorker.Register(this);
        }
Exemplo n.º 2
0
 private void Initialize(TimeSpan defaultExpiry, TimeSpan cleanUpPeriod)
 {
     CleanUpPeriod = cleanUpPeriod;
     DefaultExpiry = defaultExpiry;
     TimedDictionaryWorker.Register(this);
 }