Update RunConsoleAsync example (#6737)
parent
64035933b6
commit
1ef602b23c
|
@ -221,10 +221,9 @@ public class Program
|
||||||
{
|
{
|
||||||
public static async Task Main(string[] args)
|
public static async Task Main(string[] args)
|
||||||
{
|
{
|
||||||
var host = new HostBuilder()
|
var hostBuilder = new HostBuilder();
|
||||||
.Build();
|
|
||||||
|
|
||||||
await host.RunConsoleAsync();
|
await hostBuilder.RunConsoleAsync();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue