public static void CheckNodeVersionId(object entity, ConcurrentHashedCollection <Guid> modifiedVersionIds)
        {
            var casted = entity as NodeVersion;

            if (casted != null)
            {
                modifiedVersionIds.Add(casted.Node.Id);
            }
        }
        public override bool OnSave(object entity, object id, object[] state, string[] propertyNames, global::NHibernate.Type.IType[] types)
        {
            var casted = entity as NodeVersion;

            if (casted != null)
            {
                _modifiedVersionIds.Add(casted.Node.Id);
            }
            return(base.OnSave(entity, id, state, propertyNames, types));
        }
Example #3
0
        public override bool Remove(string key)
        {
            if (_useInMemoryCache)
            {
                _innerCacheProvider.Remove(key);
            }
            var existed = GetCacheEntry(key);

            if (existed != null)
            {
                _removalCache.Add(key);
                _indexController.QueueRemoveWhere(new Term("CacheKey", key));
                //Don't need to force the queue to flush because we have _removalCache to prevent
                //us from returning something anyway, so we can wait for the queue fine _indexController.ForceFlushQueue();
            }
            return(existed != null);
        }
 public static void CheckNodeVersionId(object entity, ConcurrentHashedCollection<Guid> modifiedVersionIds)
 {
     var casted = entity as NodeVersion;
     if (casted != null)
     {
         modifiedVersionIds.Add(casted.Node.Id);
     }
 }