public IDisposable BeginScope <TState>(TState state) where TState : notnull => ScopeProvider?.Push(state) ?? NullScope.Instance;
public IDisposable BeginScope <TState>(TState state) => ScopeProvider?.Push(state) ?? null;
/// <inheritdoc /> public IDisposable BeginScope <TState>(TState state) { return(ScopeProvider?.Push(state) ?? NopScopeProvider.NopScope.Instance); }
public IDisposable BeginScope <TState>(TState state) { return(ScopeProvider?.Push(state) ?? GitFileNullScope.Instance); }