Search Results for

    Show / Hide Table of Contents
    View Source

    Interface IAmbientScopeContextStack

    Represents an interface for a stack that manages ambient scope contexts, typically used for handling nested or hierarchical scope states.

    Namespace: Umbraco.Cms.Infrastructure.Scoping
    Assembly: Umbraco.Infrastructure.dll
    Syntax
    public interface IAmbientScopeContextStack

    Properties

    View Source

    AmbientContext

    Gets the current ambient IScopeContext, representing the active scope context for the current execution environment.

    Declaration
    IScopeContext? AmbientContext { get; }
    Property Value
    Type Description
    IScopeContext

    Methods

    View Source

    Pop()

    Removes and returns the current IScopeContext from the top of the stack.

    Declaration
    IScopeContext Pop()
    Returns
    Type Description
    IScopeContext

    The IScopeContext instance that was removed from the stack.

    View Source

    Push(IScopeContext)

    Pushes the specified IScopeContext instance onto the ambient scope context stack.

    Declaration
    void Push(IScopeContext scope)
    Parameters
    Type Name Description
    IScopeContext scope

    The IScopeContext to push onto the stack.

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