public void Delete(IIndexableId id, IProviderUpdateContext context)
        {
            if (id == null)
            {
                throw new ArgumentNullException(nameof(id));
            }

            CrawlingLog.Log.Debug($"{LogPreffix} {_index.Name} Delete IIndexableId {id.Value}");
            context.Delete(id);
        }
 public void Delete(IIndexable indexable, IProviderUpdateContext context)
 {
     Assert.ArgumentNotNull(indexable, "indexable");
     VerboseLogging.CrawlingLogDebug(() => string.Format("Deleting indexable UniqueId:{0}, Index:{1}", indexable.UniqueId, context.Index.Name));
     var providerUpdateContextEx = context as IProviderUpdateContextEx;
     if (providerUpdateContextEx != null)
         providerUpdateContextEx.Delete(indexable.UniqueId, new IExecutionContext[1]
         {
             indexable.Culture != null ? new CultureExecutionContext(indexable.Culture) : null
         });
     else
         context.Delete(indexable.UniqueId);
 }
Ejemplo n.º 3
0
        public void Delete(IIndexable indexable, IProviderUpdateContext context)
        {
            Assert.ArgumentNotNull(indexable, "indexable");
            VerboseLogging.CrawlingLogDebug(() => string.Format("Deleting indexable UniqueId:{0}, Index:{1}", indexable.UniqueId, context.Index.Name));
            var providerUpdateContextEx = context as IProviderUpdateContextEx;

            if (providerUpdateContextEx != null)
            {
                providerUpdateContextEx.Delete(indexable.UniqueId, new IExecutionContext[1]
                {
                    indexable.Culture != null ? new CultureExecutionContext(indexable.Culture) : null
                });
            }
            else
            {
                context.Delete(indexable.UniqueId);
            }
        }
Ejemplo n.º 4
0
 public void Delete(IIndexableUniqueId indexableUniqueId, IProviderUpdateContext context)
 {
     Assert.ArgumentNotNull(indexableUniqueId, "indexableUniqueId");
     VerboseLogging.CrawlingLogDebug(() => string.Format("Deleting indexable UniqueId:{0}, Index:{1}", indexableUniqueId, context.Index.Name));
     context.Delete(indexableUniqueId);
 }
 public void Delete(IIndexableId id, IProviderUpdateContext context)
 {
     context.Delete(id);
 }
Ejemplo n.º 6
0
 public void Delete(IIndexableUniqueId id, IProviderUpdateContext context)
 {
     Assert.ArgumentNotNull(id, "id");
     Assert.ArgumentNotNull(context, "context");
     context.Delete(id);
 }
 public void Delete(IIndexableUniqueId indexableUniqueId, IProviderUpdateContext context)
 {
     CrawlingLog.Log.Debug($"{LogPreffix} {_index.Name} Delete IIndexableUniqueId {indexableUniqueId.Value}");
     context.Delete(indexableUniqueId);
 }
Ejemplo n.º 8
0
 public virtual void Delete(IIndexableUniqueId indexableUniqueId, IProviderUpdateContext context)
 {
     Assert.ArgumentNotNull(indexableUniqueId, "indexableUniqueId");
     context.Delete(indexableUniqueId);
 }
 public void Delete(IIndexableUniqueId indexableUniqueId, IProviderUpdateContext context)
 {
     Assert.ArgumentNotNull(indexableUniqueId, "indexableUniqueId");
     VerboseLogging.CrawlingLogDebug(() => string.Format("Deleting indexable UniqueId:{0}, Index:{1}", indexableUniqueId, context.Index.Name));
     context.Delete(indexableUniqueId);
 }
 public void Delete(IIndexableId id, IProviderUpdateContext context)
 {
     context.Delete(id);
 }