Class SerenityHubValidationCache
Per-validator-kind cache of the last Serenity.Global.Infrastructure.Editor.Validation.SerenityValidationReport run from the Hub, backed by
SerenityHubSessionStateStore (ADR-7). Never runs a validator itself — Home and the Validate
view read whatever is cached and render a "not yet run" state when nothing has been written for that kind
this session.
Inheritance
SerenityHubValidationCache
Assembly: Serenity.UnityLocalization.Installation.Editor.dll
Syntax
public sealed class SerenityHubValidationCache
Constructors
SerenityHubValidationCache()
Declaration
public SerenityHubValidationCache()
SerenityHubValidationCache(ISerenityHubKeyValueStore)
Declaration
public SerenityHubValidationCache(ISerenityHubKeyValueStore store)
Parameters
Methods
TryReadSummary(string, out SerenityHubValidationSummary)
Reads the last cached summary for kind without running anything.
Returns false when no result has been cached for this kind this session.
Declaration
public bool TryReadSummary(string kind, out SerenityHubValidationSummary summary)
Parameters
Returns
WriteResult(string, SerenityValidationReport)
Caches the result of an explicit run for kind, replacing any prior result.
Declaration
public void WriteResult(string kind, SerenityValidationReport report)
Parameters
| Type |
Name |
Description |
| string |
kind |
|
| SerenityValidationReport |
report |
|