Skip to content

Commit

Permalink
Remove hierarchical configuration sections (#801)
Browse files Browse the repository at this point in the history
These aren't implemented yet and are tracked by #800. Removing these sections for now so people aren't confused.
  • Loading branch information
eerhardt authored Nov 14, 2023
1 parent e77a3d7 commit 072caeb
Showing 1 changed file with 0 additions and 48 deletions.
48 changes: 0 additions & 48 deletions src/Components/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,25 +58,6 @@ public static void AddAbc(this IHostApplicationBuilder builder, Action<AbcSettin
}
```

- These settings can be configured hierarchically, so common settings can be set at `Aspire:Abc` and each named section can provide settings specific to it. The named settings override the common settings.

```json
{
"Aspire": {
"Abc": {
"MySetting": true,

"named_one": {
// inherits MySetting=true
},
"named_two": {
"MySetting": false
}
}
}
}
```

## Health Checks

Aspire components expose health checks enabling applications to track and respond to the remote service’s health.
Expand Down Expand Up @@ -143,35 +124,6 @@ Aspire components offer integrated logging, metrics, and tracing using modern .N
}
```

- These `ClientOptions` can be configured hierarchically as well, so common Azure options can be configured for all Azure components. And each component can override the shared settings.

```json
{
"Aspire": {
"Azure": {
// These ClientOptions apply to all Azure components
"ClientOptions": {
"RetryOptions": {
"MaxRetries": 2,
"Delay": "00:00:01"
}
},

"Messaging:ServiceBus": {
"Namespace": "aspire-servicebus.servicebus.windows.net",

// These ClientOptions apply to the ServiceBus component and override the above options
"ClientOptions": {
"RetryOptions": {
"MaxRetries": 3
}
}
}
}
}
}
```

### Security

- If the underlying client library supports passwordless/[RBAC](https://learn.microsoft.com/azure/role-based-access-control/overview) authentication, which Credential to use should be configurable through the .NET Aspire Settings object. For example:
Expand Down

0 comments on commit 072caeb

Please sign in to comment.