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 SourceAmbientContext
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 SourcePop()
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. |
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. |