private void DeleteInnerGroup(Group group, Guid innerGroupKey) { bool innerGroupExists = group.CheckInnerGroupKey(innerGroupKey); if (!innerGroupExists) { throw new ArgumentException("Invalid inner group key."); } InnerGroup innerGroup = group.FindInnerGroup(innerGroupKey); _unitOfWork.Context.Entry(innerGroup).State = EntityState.Deleted; }
public void Subscribe(ISubscriber <IGroupedFlux <int, T> > s) { int n = source.Parallelism; var groups = new InnerGroup[n]; for (int i = 0; i < n; i++) { groups[i] = new InnerGroup(i, Flux.BufferSize); // FIXME customizable? } s.OnSubscribe(new PublisherArray <IGroupedFlux <int, T> > .ArraySubscription(s, groups)); source.Subscribe(groups); }
public void AddInnerGroup(Guid key) { var innerGroup = new InnerGroup(key); InnerGroups.Add(innerGroup); }
public Test() { InnerGroup = new InnerGroup(); AnotherInnerGroup = new AnotherInnerGroup(); }