protected internal override void Process(RECORD[] batch, BatchSender sender) { System.Func <long, IdSequence> idSequence = _prepareIdSequence.apply(Store); int recordsUpdatedInThisBatch = 0; foreach (RECORD record in batch) { if (record != null && record.inUse() && !IdValidator.isReservedId(record.Id)) { Store.prepareForCommit(record, idSequence(record.Id)); Store.updateRecord(record); recordsUpdatedInThisBatch++; } } _recordsUpdated.add(recordsUpdatedInThisBatch); }
public override void UpdateRecord(R record) { Actual.updateRecord(record); }