Skip to content
This repository was archived by the owner on Nov 21, 2018. It is now read-only.

Add kestrel config to CreateDefaultBuilder #250

Merged
merged 1 commit into from
Dec 22, 2017
Merged

Conversation

Tratcher
Copy link
Member

Kestrel now supports config, but it doesn't read any by default. CreateDefaultBuilder will specify the default location of the Kestrel config section. @DamianEdwards, @danroth27 asked if this config section should be namespaced as "Microsoft:Kestrel" or if a top level "Kestrel" section was ok?

I've also updated an old appsettings.json sample with the new config schema.

See aspnet/KestrelHttpServer#2186

@Tratcher Tratcher added this to the 2.1.0-preview1 milestone Dec 21, 2017
@Tratcher Tratcher self-assigned this Dec 21, 2017
@@ -148,7 +148,10 @@ private static IWebHost StartWith(string url, Action<IServiceCollection> configu
public static IWebHostBuilder CreateDefaultBuilder(string[] args)
{
var builder = new WebHostBuilder()
.UseKestrel()
.UseKestrel((builderContext, options) =>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update the remarks above (and related ones on other overloads) to mention that Kestrel will be configured, e.g.:
/// use Kestrel as the web server and configure it using the application's configuration providers,

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated

@Tratcher Tratcher force-pushed the tratcher/kestrelconfig branch from 70d2a8c to 7511a4d Compare December 21, 2017 22:51
@Tratcher Tratcher merged commit 7511a4d into dev Dec 22, 2017
@Tratcher Tratcher deleted the tratcher/kestrelconfig branch December 22, 2017 00:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants