Skip to content
This repository was archived by the owner on Mar 19, 2019. It is now read-only.

Commit 8ff7797

Browse files
committed
Reacting to hosting rename
1 parent 8292910 commit 8ff7797

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

samples/HotAddSample/Startup.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,12 @@ public void Configure(IApplicationBuilder app, ILoggerFactory loggerfactory)
9090

9191
public static void Main(string[] args)
9292
{
93-
var application = new WebApplicationBuilder()
94-
.UseConfiguration(WebApplicationConfiguration.GetDefault(args))
93+
var host = new WebHostBuilder()
94+
.UseDefaultConfiguration(args)
9595
.UseStartup<Startup>()
9696
.Build();
9797

98-
application.Run();
98+
host.Run();
9999
}
100100
}
101101
}

samples/SelfHostServer/Startup.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ public void Configure(IApplicationBuilder app, ILoggerFactory loggerfactory)
4040

4141
public static void Main(string[] args)
4242
{
43-
var application = new WebApplicationBuilder()
44-
.UseConfiguration(WebApplicationConfiguration.GetDefault(args))
43+
var host = new WebHostBuilder()
44+
.UseDefaultConfiguration(args)
4545
.UseStartup<Startup>()
4646
.Build();
4747

48-
application.Run();
48+
host.Run();
4949
}
5050
}
5151
}

0 commit comments

Comments
 (0)