From 8212ca7ed97a21b73364481704cdbf2e8bcd56fb Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 12 Feb 2026 03:00:12 +0000 Subject: [PATCH 1/3] Initial plan From 29058eceac13e8f3b9dd0288ba79d0d280754d4a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 12 Feb 2026 03:05:04 +0000 Subject: [PATCH 2/3] Update API baseline for NetworkEndpointSnapshotList changes Co-authored-by: karolz-ms <15271049+karolz-ms@users.noreply.github.com> --- src/Aspire.Hosting/api/Aspire.Hosting.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Aspire.Hosting/api/Aspire.Hosting.cs b/src/Aspire.Hosting/api/Aspire.Hosting.cs index e5b71318cee..fbca093d5cc 100644 --- a/src/Aspire.Hosting/api/Aspire.Hosting.cs +++ b/src/Aspire.Hosting/api/Aspire.Hosting.cs @@ -2604,10 +2604,15 @@ public partial record NetworkEndpointSnapshot(ValueSnapshot S public partial class NetworkEndpointSnapshotList : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { + public void AddOrUpdateAllocatedEndpoint(NetworkIdentifier networkID, AllocatedEndpoint endpoint) { } + + public System.Threading.Tasks.Task GetAllocatedEndpointAsync(NetworkIdentifier networkID, System.Threading.CancellationToken cancellationToken = default) { throw null; } + public System.Collections.Generic.IEnumerator GetEnumerator() { throw null; } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + [System.Obsolete("This method is for internal use only and will be marked internal in a future Aspire release. Use AddOrUpdateAllocatedEndpoint instead.")] public bool TryAdd(NetworkIdentifier networkID, ValueSnapshot snapshot) { throw null; } } From 5466c0ad9ade279e67b726fa12e897f03b19b416 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 12 Feb 2026 03:05:50 +0000 Subject: [PATCH 3/3] Fix XML documentation typo in AddOrUpdateAllocatedEndpoint Co-authored-by: karolz-ms <15271049+karolz-ms@users.noreply.github.com> --- src/Aspire.Hosting/ApplicationModel/EndpointAnnotation.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Aspire.Hosting/ApplicationModel/EndpointAnnotation.cs b/src/Aspire.Hosting/ApplicationModel/EndpointAnnotation.cs index 179f0e6e3e0..058acf53458 100644 --- a/src/Aspire.Hosting/ApplicationModel/EndpointAnnotation.cs +++ b/src/Aspire.Hosting/ApplicationModel/EndpointAnnotation.cs @@ -288,7 +288,7 @@ public bool TryAdd(NetworkIdentifier networkID, ValueSnapshot } /// - /// Adds and AllocatedEndpoint value associated with a specific network to the snapshot list. + /// Adds or updates an AllocatedEndpoint value associated with a specific network to the snapshot list. /// public void AddOrUpdateAllocatedEndpoint(NetworkIdentifier networkID, AllocatedEndpoint endpoint) {