Sample config cleanup.

This commit is contained in:
Chris R 2016-05-27 15:04:05 -07:00
parent 871885259b
commit 00990448bf
7 changed files with 4 additions and 13 deletions

View File

@ -8,11 +8,8 @@ namespace CookieSample
{ {
public static void Main(string[] args) public static void Main(string[] args)
{ {
var config = new ConfigurationBuilder().AddEnvironmentVariables("ASPNETCORE_").Build();
var host = new WebHostBuilder() var host = new WebHostBuilder()
.UseKestrel() .UseKestrel()
.UseConfiguration(config)
.UseContentRoot(Directory.GetCurrentDirectory()) .UseContentRoot(Directory.GetCurrentDirectory())
.UseIISIntegration() .UseIISIntegration()
.UseStartup<Startup>() .UseStartup<Startup>()

View File

@ -21,7 +21,7 @@
"launchUrl": "http://localhost:12345", "launchUrl": "http://localhost:12345",
"environmentVariables": { "environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development", "ASPNETCORE_ENVIRONMENT": "Development",
"ASPNETCORE_SERVER.URLS": "http://localhost:12345" "ASPNETCORE_URLS": "http://localhost:12345"
} }
} }
} }

View File

@ -8,11 +8,8 @@ namespace CookieSessionSample
{ {
public static void Main(string[] args) public static void Main(string[] args)
{ {
var config = new ConfigurationBuilder().AddEnvironmentVariables("ASPNETCORE_").Build();
var host = new WebHostBuilder() var host = new WebHostBuilder()
.UseKestrel() .UseKestrel()
.UseConfiguration(config)
.UseContentRoot(Directory.GetCurrentDirectory()) .UseContentRoot(Directory.GetCurrentDirectory())
.UseIISIntegration() .UseIISIntegration()
.UseStartup<Startup>() .UseStartup<Startup>()

View File

@ -21,7 +21,7 @@
"launchUrl": "http://localhost:12345", "launchUrl": "http://localhost:12345",
"environmentVariables": { "environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development", "ASPNETCORE_ENVIRONMENT": "Development",
"ASPNETCORE_SERVER.URLS": "http://localhost:12345" "ASPNETCORE_URLS": "http://localhost:12345"
} }
} }
} }

View File

@ -8,11 +8,8 @@ namespace JwtBearerSample
{ {
public static void Main(string[] args) public static void Main(string[] args)
{ {
var config = new ConfigurationBuilder().AddEnvironmentVariables("ASPNETCORE_").Build();
var host = new WebHostBuilder() var host = new WebHostBuilder()
.UseKestrel() .UseKestrel()
.UseConfiguration(config)
.UseContentRoot(Directory.GetCurrentDirectory()) .UseContentRoot(Directory.GetCurrentDirectory())
.UseIISIntegration() .UseIISIntegration()
.UseStartup<Startup>() .UseStartup<Startup>()

View File

@ -21,7 +21,7 @@
"launchUrl": "http://localhost:42023", "launchUrl": "http://localhost:42023",
"environmentVariables": { "environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development", "ASPNETCORE_ENVIRONMENT": "Development",
"ASPNETCORE_SERVER.URLS": "http://localhost:42023" "ASPNETCORE_URLS": "http://localhost:42023"
} }
} }
} }

View File

@ -22,7 +22,7 @@
"launchUrl": "https://localhost:44318/", "launchUrl": "https://localhost:44318/",
"environmentVariables": { "environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development", "ASPNETCORE_ENVIRONMENT": "Development",
"ASPNETCORE_SERVER.URLS": "https://localhost:44318/" "ASPNETCORE_URLS": "https://localhost:44318/"
} }
} }
} }