public virtual void Process(PullPipelineArgs args) { if (args == null) { throw new ArgumentNullException("args"); } var database = Sitecore.Context.Database; if (database == null) { throw new NullReferenceException("Sitecore.Context.Database"); } var ids = GetDataHandlerItemIds(database); foreach (var id in ids) { PullDataHandlerItem pdhItem = database.GetItem(id); if (pdhItem == null) { continue; } var reader = pdhItem.DataReader.GetDataReader(); var hydrator = pdhItem.DataHydrator.GetHydrator(); var handler = new DataHandler() { DataReader = reader, Hydrator = hydrator, ApplyNullValues = pdhItem.ApplyNullValues }; if (!args.DataHandlers.Contains(handler)) { args.DataHandlers.Add(handler); } } }
public virtual void Process(PullPipelineArgs args) { if (args == null) { throw new ArgumentNullException("args"); } var database = Sitecore.Context.Database; if (database == null) { throw new NullReferenceException("Sitecore.Context.Database"); } var ids = GetDataHandlerItemIds(database); foreach (var id in ids) { PullDataHandlerItem pdhItem = database.GetItem(id); if (pdhItem == null) { continue; } var reader = pdhItem.DataReader.GetDataReader(); var hydrator = pdhItem.DataHydrator.GetHydrator(); var handler = new DataHandler() {DataReader = reader, Hydrator = hydrator, ApplyNullValues = pdhItem.ApplyNullValues}; if (!args.DataHandlers.Contains(handler)) { args.DataHandlers.Add(handler); } } }
public virtual void Process(PipelineArgs args) { Assert.ArgumentNotNull(args, "args"); if (! Sitecore.Analytics.Tracker.Current.Session.Settings.IsFirstRequest) { return; } var args2 = new PullPipelineArgs() {HttpContext = HttpContext.Current, Contact = Sitecore.Analytics.Tracker.Current.Contact}; CorePipeline.Run("xdb.ingest.pull", args2); }
public virtual void Process(PipelineArgs args) { Assert.ArgumentNotNull(args, "args"); if (!Sitecore.Analytics.Tracker.Current.Session.Settings.IsFirstRequest) { return; } var args2 = new PullPipelineArgs() { HttpContext = HttpContext.Current, Contact = Sitecore.Analytics.Tracker.Current.Contact }; CorePipeline.Run("xdb.ingest.pull", args2); }