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

NullExternalScopeProvider

using System; using System.Runtime.CompilerServices; namespace Microsoft.Extensions.Logging { internal sealed class NullExternalScopeProvider : IExternalScopeProvider { [System.Runtime.CompilerServices.Nullable(1)] public static IExternalScopeProvider Instance { [System.Runtime.CompilerServices.NullableContext(1)] get; } = new NullExternalScopeProvider(); private NullExternalScopeProvider() { } void IExternalScopeProvider.ForEachScope<TState>(Action<object, TState> callback, TState state) { } IDisposable IExternalScopeProvider.Push(object state) { return NullScope.Instance; } } }