Skip to content
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
6 changes: 3 additions & 3 deletions src/Components/Aspire.Azure.Messaging.ServiceBus/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ The .NET Aspire Azure Service Bus library supports [Microsoft.Extensions.Configu
"Azure": {
"Messaging": {
"ServiceBus": {
"HealthChecks": false,
"HealthCheckQueueName": "myQueue",
"Tracing": true,
"ClientOptions": {
"Identifier": "CLIENT_ID"
Expand All @@ -100,10 +100,10 @@ The .NET Aspire Azure Service Bus library supports [Microsoft.Extensions.Configu

### Use inline delegates

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:
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:

```csharp
builder.AddAzureServiceBus("sb", settings => settings.HealthChecks = false);
builder.AddAzureServiceBus("sb", settings => settings.HealthCheckQueueName = "myQueue");
```

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:
Expand Down