logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    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
    object
    SerenityHubValidationCache
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    Namespace: Serenity.Localization.Installation.Settings.Editor.Hub.Services
    Assembly: Serenity.UnityLocalization.Installation.Editor.dll
    Syntax
    public sealed class SerenityHubValidationCache

    Constructors

    SerenityHubValidationCache()

    Declaration
    public SerenityHubValidationCache()

    SerenityHubValidationCache(ISerenityHubKeyValueStore)

    Declaration
    public SerenityHubValidationCache(ISerenityHubKeyValueStore store)
    Parameters
    Type Name Description
    ISerenityHubKeyValueStore store

    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
    Type Name Description
    string kind
    SerenityHubValidationSummary summary
    Returns
    Type Description
    bool

    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
    In this article
    © 2026 Serenity. All Rights Reserved