Created
June 5, 2018 19:35
-
-
Save hishaamn/cc1306687c802169c2e50f4d0f4925d8 to your computer and use it in GitHub Desktop.
The implementation of the DownloadEventIndexable
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class DownloadEventIndexable : AbstractIndexable | |
{ | |
public DownloadEventIndexable(PageEventData eventData, string url, Guid interactionId, Guid contactId) | |
{ | |
var str = interactionId + url + eventData.DataKey; | |
this.Id = (IndexableId<string>)str; | |
this.UniqueId = new IndexableUniqueId<Guid, string>(contactId, $"downloadEvent|{str}"); | |
this.DataSource = "sitecore_aggregation"; | |
this.AbsolutePath = string.Empty; | |
this.Culture = CultureInfo.GetCultureInfo(ContentSearchManager.SearchConfiguration.AnalyticsDefaultLanguage); | |
this.LoadFields(eventData, url, interactionId, contactId); | |
} | |
public override void LoadAllFields() | |
{ | |
} | |
private void LoadFields(PageEventData eventData, string url, Guid interactionId, Guid contactId) | |
{ | |
this.Fields = DownloadEventIndexableLoadFieldsPipeline.Run(ContentSearchManager.Locator.GetInstance<ICorePipeline>(), new DownloadEventIndexableLoadFieldsPipelineArgs(eventData, url, interactionId, contactId)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment