-
Notifications
You must be signed in to change notification settings - Fork 715
Closed
Copy link
Labels
area-app-modelIssues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplicationIssues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication
Milestone
Description
Run the following and it will show up as unknown:
var externalSvc = builder.AddExternalService("svc", builder.AddParameter("url"));This is because it accesses the parameter's value directly
| var url = resource.UrlParameter?.Value; |
Which throws if it wasn't provided (or can even throw if there's an error getting the value). We should use IValueProvider.GetValueAsync and we should gracefully propagate errors from the parameter resolution to this resource's state.
DamianEdwards
Metadata
Metadata
Assignees
Labels
area-app-modelIssues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplicationIssues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication