Class SerenityHubValidationRunnerRegistry
Inheritance
SerenityHubValidationRunnerRegistry
Assembly: Serenity.UnityHub.Infrastructure.Editor.dll
Syntax
public static class SerenityHubValidationRunnerRegistry
Fields
LocalizationKeysValidatorId
Id the Localization editor assembly registers its key validator under. Spelled out rather than read
from SerenityLocalizationKeyValidator.ValidatorName: the Hub does not reference that assembly
— that reference is exactly what this seam exists to break — and the string is the published
contract anyway, the same word the -validationKind vocabulary, the Hub's Localization Keys
report group and the report's validator field all carry. Changing it there must fail here.
Declaration
public const string LocalizationKeysValidatorId = "localizationKeys"
Field Value
Properties
RegisteredValidatorIds
Declaration
public static IReadOnlyList<string> RegisteredValidatorIds { get; }
Property Value
| Type |
Description |
| IReadOnlyList<string> |
Every registered validator id, in the order it was first registered.
|
Methods
Register(string, Action<SerenityValidationReport>)
Declaration
public static void Register(string validatorId, Action<SerenityValidationReport> run)
Parameters
| Type |
Name |
Description |
| string |
validatorId |
|
| Action<SerenityValidationReport> |
run |
|
TryGet(string, out Action<SerenityValidationReport>)
Declaration
public static bool TryGet(string validatorId, out Action<SerenityValidationReport> run)
Parameters
| Type |
Name |
Description |
| string |
validatorId |
|
| Action<SerenityValidationReport> |
run |
|
Returns