Class KeywordRules
- Namespace
- SEBT.Portal.Core.StateBackends.Configuration.Operations
- Assembly
- SEBT.Portal.Core.dll
Classifies an enum-typed field by scanning its From source(s) for keyword substrings. Case-insensitive/first-match-wins.
public sealed record KeywordRules
- Inheritance
-
objectKeywordRules
Properties
Default
Canonical enum value used when no keyword matches any source.
public required string Default { get; init; }
Property Value
- string
Map
OUR canonical enum value → the substrings that indicate it. Empty keywords are rejected at load.
public required Dictionary<string, List<string>> Map { get; init; }
Property Value
- Dictionary<string, List<string>>
Order
Canonical enum values in evaluation order. First match wins, so a source that contains keywords for two values takes the earlier entry
public required List<string> Order { get; init; }
Property Value
- List<string>