Ejemplo n.º 1
0
        public static async Task <IEnumerable <T> > Aggregate <T>(this IDocumentCollection <T> self, IWorkContext context, Aggregate aggregate)
        {
            Verify.IsNotNull(nameof(self), self);
            Verify.IsNotNull(nameof(aggregate), aggregate);

            return(await self.Aggregate(context, aggregate.ToDocuments()));
        }