public override void Process(GetContextIndexArgs args) { using (new TraceOperation("Run GetContextIndex rules")) { var indexItem = (Item)(SitecoreIndexableItem)args.Indexable; _runner.RunGlobalRules("Get Context Index", indexItem == null ? Sitecore.Context.Database : indexItem.Database, new GetContextIndexRuleContext(args)); } }
public GetContextIndexRuleContext(GetContextIndexArgs args) { Args = args; Item = (SitecoreIndexableItem)args.Indexable; }
public override string GetContextIndexName(IIndexable indexable, ICorePipeline pipeline) { var objContextIndexArgs = new GetContextIndexArgs(indexable); return GetContextIndexPipeline.Run(pipeline, objContextIndexArgs); }