diff --git a/src/Microsoft.AspNetCore.Server.Kestrel/Infrastructure/KestrelTrace.cs b/src/Microsoft.AspNetCore.Server.Kestrel/Infrastructure/KestrelTrace.cs index 6dae29ed37..1869e3446e 100644 --- a/src/Microsoft.AspNetCore.Server.Kestrel/Infrastructure/KestrelTrace.cs +++ b/src/Microsoft.AspNetCore.Server.Kestrel/Infrastructure/KestrelTrace.cs @@ -154,9 +154,9 @@ namespace Microsoft.AspNetCore.Server.Kestrel return _logger.IsEnabled(logLevel); } - public virtual IDisposable BeginScopeImpl(object state) + public virtual IDisposable BeginScope(TState state) { - return _logger.BeginScopeImpl(state); + return _logger.BeginScope(state); } } } \ No newline at end of file diff --git a/test/Microsoft.AspNetCore.Server.KestrelTests/TestHelpers/TestApplicationErrorLogger.cs b/test/Microsoft.AspNetCore.Server.KestrelTests/TestHelpers/TestApplicationErrorLogger.cs index eb48a70890..de8d462ed9 100644 --- a/test/Microsoft.AspNetCore.Server.KestrelTests/TestHelpers/TestApplicationErrorLogger.cs +++ b/test/Microsoft.AspNetCore.Server.KestrelTests/TestHelpers/TestApplicationErrorLogger.cs @@ -16,7 +16,7 @@ namespace Microsoft.AspNetCore.Server.KestrelTests public int ApplicationErrorsLogged { get; set; } - public IDisposable BeginScopeImpl(object state) + public IDisposable BeginScope(TState state) { return new Disposable(() => { }); }