Struct ChangeSetFieldNames
- Namespace
- Stratara.Shared.Diagnostics.Extensions
- Assembly
- Stratara.Projections.dll
Deferred-formatting wrapper around an IReadOnlyList<T> for the
source-generated LogChangeSetCreated logger extension. The wrapping struct is zero-cost
at construction; the join over property names happens only inside
ToString(), which the source-generated logger formatter invokes solely when
the target log channel is enabled — keeping the hot path allocation-free when Debug logging
is disabled.
public readonly struct ChangeSetFieldNames
- Inherited Members
- Extension Methods
Remarks
Only the changed property names are emitted; values stay inside the wrapper and are never stringified, satisfying the PII guard from Round-3-Audit Finding R3-Sec-005.
Constructors
ChangeSetFieldNames(IReadOnlyList<ChangeDetail>)
Initializes a new wrapper over the supplied change list.
public ChangeSetFieldNames(IReadOnlyList<ChangeDetail> changes)
Parameters
changesIReadOnlyList<ChangeDetail>The detected field changes; must not be null.
Methods
ToString()
Renders the wrapped change list as a comma-separated list of property names.
public override string ToString()
Returns
- string
A names-only projection of the change set, never including values.