public StoreOperationCompletedEvent(StoreOperation operation) { if (operation == null) { throw new ArgumentNullException("operation"); } Operation = operation; }
private void TrackStoreOperation(string tableName, string itemId, LocalStoreOperationKind operationKind) { var operation = new StoreOperation(tableName, itemId, operationKind, this.trackingContext.Source, this.trackingContext.BatchId); if (this.trackBatches) { this.operationsBatch.IncrementOperationCount(operationKind) .ContinueWith(t => t.Exception.Handle(e => true), TaskContinuationOptions.OnlyOnFaulted); } if (this.trackRecordOperations) { this.eventManager.BackgroundPublish(new StoreOperationCompletedEvent(operation)); } }
/// <summary> /// Creates a new store operation completed event. /// </summary> /// <param name="operation">The operation that was completed.</param> public StoreOperationCompletedEvent(StoreOperation operation) { Arguments.IsNotNull(operation, nameof(operation)); Operation = operation; }