Update RunConsoleAsync example (#6737)

pull/6741/head
Luke Latham 2018-05-31 09:47:40 -05:00 committed by Scott Addie
parent 64035933b6
commit 1ef602b23c
1 changed files with 2 additions and 3 deletions

View File

@ -221,10 +221,9 @@ public class Program
{
public static async Task Main(string[] args)
{
var host = new HostBuilder()
.Build();
var hostBuilder = new HostBuilder();
await host.RunConsoleAsync();
await hostBuilder.RunConsoleAsync();
}
}
```