Skip to content
Docs Try Aspire

NetworkEndpointSnapshotList Methods

Class Methods 2 members
Holds a list of NetworkEndpointSnapshot for an Endpoint, providing thread-safe enumeration and addition.
Provides a thread-safe enumerator over the network endpoint snapshots.
public class NetworkEndpointSnapshotList
{
public IEnumerator<NetworkEndpointSnapshot> GetEnumerator()
{
// ...
}
}
TryAdd(NetworkIdentifier, ValueSnapshot<AllocatedEndpoint>) Section titled TryAdd(NetworkIdentifier, ValueSnapshot<AllocatedEndpoint>) bool
Adds an AllocatedEndpoint snapshot for a specific network if one does not already exist.
public class NetworkEndpointSnapshotList
{
public bool TryAdd(
NetworkIdentifier networkID,
ValueSnapshot<AllocatedEndpoint> snapshot)
{
// ...
}
}
networkID NetworkIdentifier
snapshot ValueSnapshot<AllocatedEndpoint>