diff --git a/src/Microsoft.AspNet.Server.Kestrel/KestrelServerInformation.cs b/src/Microsoft.AspNet.Server.Kestrel/KestrelServerInformation.cs index 84b2fcab57..acbfc685e5 100644 --- a/src/Microsoft.AspNet.Server.Kestrel/KestrelServerInformation.cs +++ b/src/Microsoft.AspNet.Server.Kestrel/KestrelServerInformation.cs @@ -42,7 +42,7 @@ namespace Microsoft.AspNet.Server.Kestrel private static int GetThreadCount(IConfiguration configuration) { - var threadCountString = configuration["server.threadCount"]; + var threadCountString = configuration["kestrel.threadCount"]; int threadCount; if (string.IsNullOrEmpty(threadCountString) || !int.TryParse(threadCountString, out threadCount)) diff --git a/test/Microsoft.AspNet.Server.KestrelTests/KestrelServerInformationTests.cs b/test/Microsoft.AspNet.Server.KestrelTests/KestrelServerInformationTests.cs index 2a3285da9f..91e9a419f0 100644 --- a/test/Microsoft.AspNet.Server.KestrelTests/KestrelServerInformationTests.cs +++ b/test/Microsoft.AspNet.Server.KestrelTests/KestrelServerInformationTests.cs @@ -18,7 +18,7 @@ namespace Microsoft.AspNet.Server.KestrelTests var values = new Dictionary { - { "server.threadCount", expected.ToString() } + { "kestrel.threadCount", expected.ToString() } }; var configuration = new ConfigurationBuilder()