Watch Aspire live streamsDocsTry Aspire
Watch Aspire live streamsDocsTry

ContainerNetworkAliasAnnotation

Classsealednet10.0
📦 Aspire.Hosting v13.5.4
Represents an annotation for a custom network alias for a container resource.
namespace Aspire.Hosting.ApplicationModel;
public sealed class ContainerNetworkAliasAnnotation
: Aspire.Hosting.ApplicationModel.IResourceAnnotation
{
// ...
}
Network aliases enable DNS resolution of the container on the network by custom names. Multiple aliases can be specified for a single container by adding multiple annotations.
View all constructors
View all properties