public void CustomGrouping(IAggregateGrouper <TId> grouper) { if (_customSlicer != null) { throw new InvalidOperationException( "There is already a custom event slicer registered for this projection"); } _defaultSlicer.CustomGrouping(grouper); }
/// <summary> /// Apply a custom event grouping strategy for events. This is additive to Identity() or Identities() /// </summary> /// <param name="grouper"></param> /// <exception cref="InvalidOperationException"></exception> public EventSlicer <TDoc, TId> CustomGrouping(IAggregateGrouper <TId> grouper) { _lookupGroupers.Add(grouper); return(this); }