public void Add(RangeCollection rowCollection) { lock (_lockObj) { _rangePendingCheckin.AddRangeCollection(rowCollection); if (_rangePendingCheckin.Count() >= _bufferSize) { NonBlockingFlush(); } } }
public void FinalizeParse() { Helper.CheckCondition <ParseException>(TaskCount > 0, "TaskCount must be at least 1."); Helper.CheckCondition <ParseException>(Tasks.Count() == 0 || Tasks.FirstElement >= 0 && Tasks.LastElement < TaskCount, "The tasks range {0} is not between 0 and TaskCount {1}", Tasks, TaskCount); }