public StoreOperationsBatchCompletedEvent(StoreOperationsBatch batch) { if (batch == null) { throw new ArgumentNullException("batch"); } Batch = batch; }
private void InitializeTracking() { this.trackRecordOperations = IsRecordTrackingEnabled(); this.trackBatches = IsBatchTrackingEnabled(); if (!this.trackRecordOperations & !this.trackBatches) { throw new InvalidOperationException(string.Format(CultureInfo.InvariantCulture, "Tracking notifications are not enabled for the source {0}. To use a change tracker, you must enable record operation notifications, batch notifications or both.", this.trackingContext.Source)); } if (this.trackBatches) { this.operationsBatch = new StoreOperationsBatch(this.trackingContext.BatchId, this.trackingContext.Source); } }