コード例 #1
0
ファイル: ViewProjection.cs プロジェクト: cocowalla/marten
 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);
 }
コード例 #2
0
ファイル: EventSlicer.cs プロジェクト: jeffdoolittle/marten
        /// <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);
        }