Skip to content

Commit ced7327

Browse files
authored
Fixed properties override when publishing an update in external service (#10822)
1 parent d92c885 commit ced7327

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Aspire.Hosting/ExternalServiceBuilderExtensions.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,7 @@ await e.Notifications.PublishUpdateAsync(resource, snapshot => snapshot with
145145

146146
await e.Notifications.PublishUpdateAsync(resource, snapshot => snapshot with
147147
{
148-
Properties = [
149-
new(CustomResourceKnownProperties.Source, uri.Host)
150-
],
148+
Properties = snapshot.Properties.SetResourceProperty(CustomResourceKnownProperties.Source, uri.Host),
151149
// Add the URL if it came from a parameter as non-static URLs must be published by the owning custom resource
152150
Urls = AddUrlIfNotPresent(snapshot.Urls, uri),
153151
// Required in order for health checks to work

0 commit comments

Comments
 (0)