예제 #1
0
        public GenericFluentEventQuery <T> EventQuery <T>(DateTime fromDate, DateTime toDate, INonSortableLimit limit, int limitCount, string queryName = "ChronologicalQuery") where T : new()
        {
            var populatedLimit = Limit.CreateLimit(limit, limitCount);

            return(new GenericFluentEventQuery <T>(queryName, Search.Span(fromDate, toDate), populatedLimit, this));
        }
예제 #2
0
 internal GenericFluentEventQuery(string queryName, Search search, Limit limit, Environment environment)
     : this(queryName, search, limit, environment, new EventWebSocketRepository(new WebSocketRepository(environment)))
 {
 }
예제 #3
0
 internal UniqueValuesAggregate(Property property, Limit limit, TZ child)
 {
     Property = property;
     Limit    = limit;
     Child    = child;
 }
예제 #4
0
        public Aggregate <T, TY, TZ> UniqueValues <TY, TZ>(Expression <Func <T, TY> > property, int take, TZ child)
        {
            var populatedLimit = Limit.CreateLimit(Limit.Take, take);

            return(new UniqueValuesAggregate <T, TY, TZ>(Property <TY> .Create(property), populatedLimit, child));
        }
예제 #5
0
 public FluentEventQuery WithLimit(Limit limit)
 {
     _limit = limit;
     return(this);
 }