public StoreOperationsBatchCompletedEvent(StoreOperationsBatch batch)
        {
            if (batch == null)
            {
                throw new ArgumentNullException("batch");
            }

            Batch = batch;
        }
 public StoreOperationsBatchCompletedEvent(StoreOperationsBatch batch)
 {
     if (batch == null)
     {
         throw new ArgumentNullException("batch");
     }
     
     Batch = batch;
 }
예제 #3
0
        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);
            }
        }
        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);
            }
        }