Skip to content

Commit 0bd6302

Browse files
authored
change sample to use async
1 parent a765315 commit 0bd6302

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/service-bus-messaging/build-message-driven-apps-nservicebus.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ In this sample, the Sender and Receiver endpoints are configured to run as conso
302302
[assembly: NServiceBusTriggerFunction("Sender")]
303303
public class Program
304304
{
305-
public static Task Main()
305+
public static async Task Main()
306306
{
307307
var host = new HostBuilder()
308308
.ConfigureFunctionsWorkerDefaults()
@@ -312,7 +312,7 @@ public class Program
312312
})
313313
.Build();
314314

315-
return host.RunAsync();
315+
await host.RunAsync();
316316
}
317317
}
318318
```

0 commit comments

Comments
 (0)