Struct DistinctEventTypeNames
- Namespace
- Stratara.Shared.Diagnostics.Extensions
- Assembly
- Stratara.Shared.dll
Deferred-formatting wrapper around an IReadOnlyList<T> for source-generated logger extensions that surface a distinct, comma-separated list of EventTypeName values. The wrapping struct is zero-cost at construction; the projection + distinct + join only run 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 DistinctEventTypeNames
- Inherited Members
- Extension Methods
Constructors
DistinctEventTypeNames(IReadOnlyList<IEvent>)
Initializes a new wrapper over the supplied event list.
public DistinctEventTypeNames(IReadOnlyList<IEvent> events)
Parameters
eventsIReadOnlyList<IEvent>The events to render type-names from; must not be null.
Methods
ToString()
Renders the wrapped event list as a comma-separated, distinct list of type names.
public override string ToString()
Returns
- string
A distinct projection of EventTypeName across the wrapped events.