<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="9.0.5" />

IExternalScopeProvider

public interface IExternalScopeProvider
Represents a storage of common scope data.
void ForEachScope<TState>(Action<object, TState> callback, TState state)

Executes callback for each currently active scope objects in order of creation. All callbacks are guaranteed to be called inline from this method.

IDisposable Push(object state)

Adds scope object to the list.