Update RunConsoleAsync example (#6737)
parent
64035933b6
commit
1ef602b23c
|
@ -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();
|
||||
}
|
||||
}
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue