Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Make HostBuilder Async #2122

Merged
merged 1 commit into from
Jul 5, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/ApiService/ApiService/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public static List<ILog> GetLoggers(IServiceConfig config) {

//Move out expensive resources into separate class, and add those as Singleton
// ArmClient, Table Client(s), Queue Client(s), HttpClient, etc.
public static void Main() {
public async static Async.Task Main() {
var host = new HostBuilder()
.ConfigureFunctionsWorkerDefaults(
builder => {
Expand Down Expand Up @@ -121,7 +121,7 @@ public static void Main() {
)
.Build();

host.Run();
await host.RunAsync();
}


Expand Down