protected virtual bool IsExpired(ReadOnlyClone clone) { IObjectManager om = this.Context.ObjectManager; IClassMap classMap = this.Context.DomainMap.MustGetClassMap(clone.Type); TimeToLiveBehavior ttlBehavior = om.GetTimeToLiveBehavior(classMap); if (ttlBehavior == TimeToLiveBehavior.Default || ttlBehavior == TimeToLiveBehavior.On) { long ttl = om.GetTimeToLive(classMap); if (ttl > 0) { if (clone.LoadedTime.AddSeconds(ttl) < DateTime.Now) { return(true); } } } return(false); }