Compono.CompositionConfigurationError.ProfileCycle
Compono¶
Compono.CompositionConfigurationError¶
CompositionConfigurationError.ProfileCycle Class¶
A profile, directly or transitively (via AddProfile called from inside another profile's Configure), applied itself again while it was already applying - detected and thrown immediately from AddProfile, never aggregated into a CompositionConfigurationException alongside any other conflict.
public sealed record CompositionConfigurationError.ProfileCycle : Compono.CompositionConfigurationError, System.IEquatable<Compono.CompositionConfigurationError.ProfileCycle>
Inheritance System.Object → CompositionConfigurationError → ProfileCycle
Implements System.IEquatable<ProfileCycle>
Remarks¶
Identity for cycle purposes is a profile's declared CLR type (profile.GetType()), regardless of whether it reached the builder via AddProfile<T>() or AddProfile(instance) - see docs/adr/0018-composition-profiles.md.
| Constructors | |
|---|---|
| ProfileCycle(IReadOnlyList<Type>) | Creates a ProfileCycle error. |
| Properties | |
|---|---|
| Chain | The full cycle, in application order, with the repeated profile type at both ends (e.g. [ProfileA, ProfileB, ProfileA]) - always at least two entries. A genuinely immutable snapshot (Compono.ImmutableSnapshot), same guarantee as Sources. |