Search Results for

    Show / Hide Table of Contents
    View Source

    Class ContentRoutingReadinessExtensions

    Extension methods for IContentRoutingReadiness.

    Inheritance
    object
    Namespace: Umbraco.Cms.Core.Routing
    Assembly: Umbraco.Core.dll
    Syntax
    public static class ContentRoutingReadinessExtensions

    Methods

    View Source

    IsInInitializationWindow(IContentRoutingReadiness, IRuntimeState)

    Determines whether the application is running but per-server content caches are still being seeded, meaning front-end content must not be routed yet (a maintenance page / 503 should be shown instead).

    Declaration
    public static bool IsInInitializationWindow(this IContentRoutingReadiness readiness, IRuntimeState runtimeState)
    Parameters
    Type Name Description
    IContentRoutingReadiness readiness

    The content-routing readiness signal for this server.

    IRuntimeState runtimeState

    The runtime state, used to check the current RuntimeLevel.

    Returns
    Type Description
    bool

    true if the runtime is at Run but per-server content caches are not yet seeded (so front-end content must not be routed); otherwise false.

    Remarks

    Only the Run window is considered here; other levels (Install, Upgrade, Upgrading, BootFailed) are already gated by the existing runtime-level checks in the routing and maintenance machinery.

    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX