Пример #1
0
        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;
        }
Пример #2
0
        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);
        }
Пример #3
0
        public void AddInnerGroup(Guid key)
        {
            var innerGroup = new InnerGroup(key);

            InnerGroups.Add(innerGroup);
        }
Пример #4
0
 public Test()
 {
     InnerGroup        = new InnerGroup();
     AnotherInnerGroup = new AnotherInnerGroup();
 }