Skip to content

Instantly share code, notes, and snippets.

@hishaamn
Last active August 28, 2017 21:07
Show Gist options
  • Select an option

  • Save hishaamn/5ce4df37dd9185d827b2997ce19280d0 to your computer and use it in GitHub Desktop.

Select an option

Save hishaamn/5ce4df37dd9185d827b2997ce19280d0 to your computer and use it in GitHub Desktop.
using Sitecore.Analytics.Aggregation.Data.Model;
/// <summary>
/// The content flow value.
/// </summary>
public class ContentFlowValue : DictionaryValue
{
/// <summary>
/// Gets or sets the count.
/// </summary>
public long Count { get; set; }
/// <summary>
/// The reduce.
/// </summary>
/// <param name="left">
/// The left.
/// </param>
/// <param name="right">
/// The right.
/// </param>
/// <returns>
/// The <see cref="ContentFlowValue"/>.
/// </returns>
internal static ContentFlowValue Reduce(ContentFlowValue left, ContentFlowValue right)
{
var contentEventValue = new ContentFlowValue
{
Count = left.Count + right.Count
};
return contentEventValue;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment