-
Notifications
You must be signed in to change notification settings - Fork 311
Conversation
@@ -27,8 +28,10 @@ public void Configure(IApplicationBuilder app) | |||
// Entry point for the application. | |||
public static void Main(string[] args) | |||
{ | |||
var config = new ConfigurationBuilder().AddCommandLine(args).Build(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove config from this sample.
99e1681
to
109c28f
Compare
Side note: The IISIntegration changes need to be checked in first, and they don't rely on any of these changes. |
var config = new ConfigurationBuilder() | ||
.AddCommandLine(args) | ||
.AddEnvironmentVariables(prefix: WebHostDefaults.EnvironmentVariablesPrefix) | ||
.AddJsonFile(WebHostDefaults.HostingJsonFile, optional: true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove the WebHostDefaults.HostingJsonFile constant, it's no longer used in src.
I'm tempted to remove WebHostDefaults.EnvironmentVariablesPrefix as well, as it's only used once in src.
587c746
to
79a7143
Compare
@@ -28,7 +28,6 @@ public void Configure(IApplicationBuilder app) | |||
public static void Main(string[] args) | |||
{ | |||
var host = new WebHostBuilder() | |||
.UseDefaultHostingConfiguration(args) | |||
.UseStartup<StartupHelloWorld>() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
UseServer?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch, here and in StartupExternallyControlled
.
…ostingConfiguration
79a7143
to
e505ecb
Compare
This issue addresses #727, #700 and render #693 not applicable
As discussed offline with @davidfowl @Tratcher , we are removing default hosting configurations and the user is expected to construct their own configurations. The only exception is that we fallback to environment variables for the
Environment
option. I'll make an update to IISIntegration in a later PR to see what the changes there look like.We will also need to update all of our samples again.