Skip to main content
Table of Contents

Class ChangeMergeResult<TChanges>

Namespace
Stratara.Shared.Merging.ChangeTracking
Assembly
Stratara.Shared.dll

Result of a ChangeMerger operation: the merged TChanges payload plus the per-property change details that constitute the merge's audit trail.

[ExcludeFromCodeCoverage]
public sealed record ChangeMergeResult<TChanges> : IEquatable<ChangeMergeResult<TChanges>>

Type Parameters

TChanges

CLR type of the change-set payload (typically a command).

Inheritance
ChangeMergeResult<TChanges>
Implements
Inherited Members
Extension Methods

Constructors

ChangeMergeResult(TChanges, IReadOnlyList<ChangeDetail>)

Result of a ChangeMerger operation: the merged TChanges payload plus the per-property change details that constitute the merge's audit trail.

public ChangeMergeResult(TChanges MergedChanges, IReadOnlyList<ChangeDetail> Differences)

Parameters

MergedChanges TChanges

The merged payload with conflicting fields resolved against the current aggregate state.

Differences IReadOnlyList<ChangeDetail>

Per-property change details describing source, current, and incoming values.

Properties

Differences

Per-property change details describing source, current, and incoming values.

public IReadOnlyList<ChangeDetail> Differences { get; init; }

Property Value

IReadOnlyList<ChangeDetail>

MergedChanges

The merged payload with conflicting fields resolved against the current aggregate state.

public TChanges MergedChanges { get; init; }

Property Value

TChanges