2 instantiations of NetworkEndpointSnapshot
Aspire.Hosting (2)
ApplicationModel\EndpointAnnotation.cs (1)
280
_snapshots.Add(new
NetworkEndpointSnapshot
(snapshot, networkID));
ApplicationModel\EndpointReference.cs (1)
312
nes = new
NetworkEndpointSnapshot
(new ValueSnapshot<AllocatedEndpoint>(), networkContext);
6 references to NetworkEndpointSnapshot
Aspire.Hosting (6)
ApplicationModel\EndpointAnnotation.cs (4)
250
/// Holds a list of <see cref="
NetworkEndpointSnapshot
"/> for an Endpoint, providing thread-safe enumeration and addition.
252
public class NetworkEndpointSnapshotList : IEnumerable<
NetworkEndpointSnapshot
>
254
private readonly ConcurrentBag<
NetworkEndpointSnapshot
> _snapshots = new();
259
public IEnumerator<
NetworkEndpointSnapshot
> GetEnumerator()
ApplicationModel\EndpointReference.cs (2)
169
foreach (
var
nes in endpointAnnotation.AllAllocatedEndpoints)
309
var
nes = endpointSnapshots.Where(nes => nes.NetworkID == networkContext).FirstOrDefault();