NetworkEndpointSnapshotList
Class net8.0
Holds a list of
NetworkEndpointSnapshot for an Endpoint, providing thread-safe enumeration and addition. namespace Aspire.Hosting.ApplicationModel;
public class NetworkEndpointSnapshotList : System.Collections.Generic.IEnumerable<Aspire.Hosting.ApplicationModel.NetworkEndpointSnapshot>, System.Collections.IEnumerable{ // ...} IEnumerable<NetworkEndpointSnapshot>IEnumerable
5 members
Constructors1
Section titled ConstructorsMethods4
Section titled MethodsAddOrUpdateAllocatedEndpoint(NetworkIdentifier, AllocatedEndpoint) Adds or updates an AllocatedEndpoint value associated with a specific network in the snapshot list.
GetAllocatedEndpointAsync(NetworkIdentifier, CancellationToken) Gets an AllocatedEndpoint for a given network ID, waiting for it to appear if it is not already present.
GetEnumerator Provides a thread-safe enumerator over the network endpoint snapshots.
TryAdd(NetworkIdentifier, ValueSnapshot<AllocatedEndpoint>)obsoletebool Adds an AllocatedEndpoint snapshot for a specific network if one does not already exist.