Add required modifiers and generalize behaviour type

Marked UrlLocation properties as required in ResourceDefinition for improved null safety. Changed OrderedLinkGenerator to use the more general IStateChangeBehaviour instead of NumberedStateChanger, increasing flexibility.
This commit is contained in:
qwsdcvghyu89
2025-09-27 15:48:14 +10:00
parent 94b6c0645c
commit 8e60109f5e
2 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -19,8 +19,8 @@ public class ResourceDefinition {
}
public class UrlLocation {
public ILinkBuilder Segments { get; init; }
public List<ImmutableState> States { get; init; }
public IStateChangerFactory StateChanger { get; init; }
public required ILinkBuilder Segments { get; init; }
public required List<ImmutableState> States { get; init; }
public required IStateChangerFactory StateChanger { get; init; }
}
}