Open IEvangelist opened 8 months ago
cc @ReubenBond
This can be useful. We added something similar in the Aspire.Hosting.Testing package as an extension on DistributedApplication. The API would need to take an optional endpoint name. I would prefer it returns HTTP only if HTTPS is not available.
Where is that, I just looked and can't seem to find what you're describing?
I also recently stumbled upon these, that are similar by don't expand the config names: dotnet/aspire/blob/main/src/Shared/IConfigurationExtensions.cs
.
It would be really nice if Aspire added some extension methods on
IConfiguration
that allow for convenience-based APIs for getting values.For example, it's ugly to ask the config for
"services__serviceName__0"
. Something like this might be really useful: