Skip to content

Commit cc7f801

Browse files
authored
Use the right health check properties in ServiceBus README. (#1876)
Fix #1715
1 parent 677511a commit cc7f801

File tree

1 file changed

+3
-3
lines changed
  • src/Components/Aspire.Azure.Messaging.ServiceBus

1 file changed

+3
-3
lines changed

src/Components/Aspire.Azure.Messaging.ServiceBus/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ The .NET Aspire Azure Service Bus library supports [Microsoft.Extensions.Configu
8686
"Azure": {
8787
"Messaging": {
8888
"ServiceBus": {
89-
"HealthChecks": false,
89+
"HealthCheckQueueName": "myQueue",
9090
"Tracing": true,
9191
"ClientOptions": {
9292
"Identifier": "CLIENT_ID"
@@ -100,10 +100,10 @@ The .NET Aspire Azure Service Bus library supports [Microsoft.Extensions.Configu
100100

101101
### Use inline delegates
102102

103-
You can also pass the `Action<AzureMessagingServiceBusSettings> configureSettings` delegate to set up some or all the options inline, for example to disable health checks from code:
103+
You can also pass the `Action<AzureMessagingServiceBusSettings> configureSettings` delegate to set up some or all the options inline, for example to configure the health check queue name from code:
104104

105105
```csharp
106-
builder.AddAzureServiceBus("sb", settings => settings.HealthChecks = false);
106+
builder.AddAzureServiceBus("sb", settings => settings.HealthCheckQueueName = "myQueue");
107107
```
108108

109109
You can also setup the [ServiceBusClientOptions](https://learn.microsoft.com/dotnet/api/azure.messaging.servicebus.servicebusclientoptions) using the optional `Action<IAzureClientBuilder<ServiceBusClient, ServiceBusClientOptions>> configureClientBuilder` parameter of the `AddAzureServiceBus` method. For example, to set the client ID for this client:

0 commit comments

Comments
 (0)