<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="9.0.0-preview.7.24405.7" />

LoggerExternalScopeProvider

Default implementation of IExternalScopeProvider.

Creates a new LoggerExternalScopeProvider.

public 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.

public IDisposable Push(object state)

Adds scope object to the list.