예제 #1
0
        private void StopBatchUpdate(ListBatchChange <T> batch)
        {
            if (batch != _batch)
            {
                return;
            }
            _batch = null;

            _subject.OnNext(batch);
        }
예제 #2
0
        public IDisposable StartBatchUpdate()
        {
            if (_batch != null)
            {
                throw new NotImplementedException("recusive batch updates are not implemented");
            }

            _batch = new ListBatchChange <T>(this.StopBatchUpdate);
            return(_batch);
        }