Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Aspire.Hosting/ApplicationModel/EndpointAnnotation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ public bool TryAdd(NetworkIdentifier networkID, ValueSnapshot<AllocatedEndpoint>
}

/// <summary>
/// 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.
/// </summary>
public void AddOrUpdateAllocatedEndpoint(NetworkIdentifier networkID, AllocatedEndpoint endpoint)
{
Expand Down
5 changes: 5 additions & 0 deletions src/Aspire.Hosting/api/Aspire.Hosting.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2604,10 +2604,15 @@ public partial record NetworkEndpointSnapshot(ValueSnapshot<AllocatedEndpoint> S

public partial class NetworkEndpointSnapshotList : System.Collections.Generic.IEnumerable<NetworkEndpointSnapshot>, System.Collections.IEnumerable
{
public void AddOrUpdateAllocatedEndpoint(NetworkIdentifier networkID, AllocatedEndpoint endpoint) { }

public System.Threading.Tasks.Task<AllocatedEndpoint> GetAllocatedEndpointAsync(NetworkIdentifier networkID, System.Threading.CancellationToken cancellationToken = default) { throw null; }

public System.Collections.Generic.IEnumerator<NetworkEndpointSnapshot> 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<AllocatedEndpoint> snapshot) { throw null; }
}

Expand Down