Exemplo n.º 1
0
        public bool Equals(CachedElement <T> other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }

            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return(Element.Equals(other.Element));
        }
Exemplo n.º 2
0
 private bool ElementIsOld(CachedElement <T> cachedElement)
 {
     return(_timerProvider.Now - cachedElement.CachingTime > _timeout);
 }