public ProcessedArgs( DateTimeOffset timeStamp, IEnumerable <ILogMessage> logMessages, Exception exception, TEntity sourceSystemEntity, EntityIdentifier sourceSystemEntityId, TEntity destinationSystemEntity, EntityIdentifier destinationSystemEntityId, EntityTransactionOutcome outcome, ISerializedEntity serializedSourceSystemEntity, IEnumerable <IValueChange> valueChanges) : base(timeStamp, logMessages, exception) { this.SourceSystemEntity = sourceSystemEntity; this.SourceSystemEntityId = sourceSystemEntityId; this.DestinationSystemEntity = destinationSystemEntity; this.DestinationSystemEntityId = destinationSystemEntityId; this.Outcome = outcome; this.SerializedSourceSystemEntity = serializedSourceSystemEntity; if (valueChanges == null || exception != null) { this.ValueChanges = Enumerable.Empty <IValueChange>(); } else { this.ValueChanges = valueChanges; } }
/// <summary> /// Updates the serialized source system entity for the specified mapping. /// </summary> /// <param name="mappingId">The ID of the mapping.</param> /// <param name="operation">The current operation.</param> /// <param name="sourceSystemEntity"> /// The new serialized source system entity. /// </param> public void UpdateMappingEntity( Guid mappingId, IOperation operation, ISerializedEntity sourceSystemEntity) { this.Invoke( () => this.repository.UpdateMappingEntity( mappingId, operation, sourceSystemEntity), nameof(this.repository.UpdateMappingEntity)); }
/// <summary> /// Updates the serialized source system entity for the specified mapping. /// </summary> /// <param name="mappingId">The ID of the mapping.</param> /// <param name="operation">The current operation.</param> /// <param name="sourceSystemEntity"> /// The new serialized source system entity. /// </param> public void UpdateMappingEntity( Guid mappingId, IOperation operation, ISerializedEntity sourceSystemEntity) { this.context.UpdateMappingEntity( mappingId, operation.Id, operation.TimeStamp, sourceSystemEntity.DataHash, sourceSystemEntity.Data, sourceSystemEntity.Label); }