25 writes to Port
Aspire.Hosting (1)
Aspire.Hosting.Azure.AppContainers (1)
Aspire.Hosting.Azure.CosmosDB (2)
Aspire.Hosting.Azure.EventHubs (1)
Aspire.Hosting.Azure.ServiceBus (1)
Aspire.Hosting.Azure.Storage (3)
Aspire.Hosting.Kafka (1)
Aspire.Hosting.MongoDB (1)
Aspire.Hosting.MySql (1)
Aspire.Hosting.PostgreSQL (2)
Aspire.Hosting.Redis (2)
Aspire.Hosting.Tests (8)
ProxylessEndToEnd.AppHost (1)
93 references to Port
Aspire.Hosting (4)
Aspire.Hosting.Azure.AppContainers (5)
AzureContainerAppsInfrastructure.cs (5)
287int? targetPort = (resource, endpoint.UriScheme, endpoint.TargetPort, endpoint.Port) switch
310int? exposedPort = (endpoint.UriScheme, endpoint.Port, targetPort) switch
413if (e.UriScheme is "http" && e.Port is not null and not 80)
418if (e.UriScheme is "https" && e.Port is not null and not 443)
446_endpointMapping[e.Name] = new(e.UriScheme, resource.Name, e.Port ?? g.Port.Value, g.Port.Value, false, g.External);
Aspire.Hosting.Azure.Tests (13)
Aspire.Hosting.Elasticsearch.Tests (4)
Aspire.Hosting.Garnet.Tests (2)
Aspire.Hosting.Kafka.Tests (3)
Aspire.Hosting.Keycloak.Tests (2)
Aspire.Hosting.Milvus.Tests (3)
Aspire.Hosting.MongoDB.Tests (3)
Aspire.Hosting.MySql.Tests (2)
Aspire.Hosting.Nats.Tests (2)
Aspire.Hosting.Oracle.Tests (3)
Aspire.Hosting.PostgreSQL.Tests (4)
Aspire.Hosting.Qdrant.Tests (5)
Aspire.Hosting.RabbitMQ.Tests (3)
Aspire.Hosting.Redis.Tests (4)
Aspire.Hosting.Seq.Tests (2)
Aspire.Hosting.SqlServer.Tests (1)
Aspire.Hosting.Tests (26)
ProjectResourceTests.cs (10)
256Assert.Equal(7123, a.Port);
262Assert.Equal(5156, a.Port);
338e.AllocatedEndpoint = new(e, "localhost", e.Port!.Value, targetPortExpression: "p0");
342e.AllocatedEndpoint = new(e, "localhost", e.Port!.Value, targetPortExpression: "p1");
346e.AllocatedEndpoint = new(e, "localhost", e.Port!.Value, targetPortExpression: "p2");
350e.AllocatedEndpoint = new(e, "localhost", e.Port!.Value, targetPortExpression: "p3");
397e.AllocatedEndpoint = new(e, "localhost", e.Port!.Value, targetPortExpression: "p0");
427e.AllocatedEndpoint = new(e, "localhost", e.Port!.Value, targetPortExpression: $"p{index++}");
605e.AllocatedEndpoint = new(e, "localhost", e.Port!.Value, targetPortExpression: "p0");
611e.AllocatedEndpoint = new(e, "localhost", e.Port!.Value, targetPortExpression: "p1");
Aspire.Hosting.Valkey.Tests (2)