28 writes to Port
Aspire.Hosting (1)
Aspire.Hosting.Azure.AppContainers (1)
Aspire.Hosting.Azure.CosmosDB (1)
Aspire.Hosting.Azure.EventHubs (1)
Aspire.Hosting.Azure.Storage (3)
Aspire.Hosting.Dapr.Tests (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)
Dapr.AppHost (2)
ProxylessEndToEnd.AppHost (1)
88 references to Port
Aspire.Hosting (6)
Aspire.Hosting.Azure.AppContainers (5)
AzureContainerAppsInfrastructure.cs (5)
288int? targetPort = (resource, endpoint.UriScheme, endpoint.TargetPort, endpoint.Port) switch
311int? exposedPort = (endpoint.UriScheme, endpoint.Port, targetPort) switch
414if (e.UriScheme is "http" && e.Port is not null and not 80)
419if (e.UriScheme is "https" && e.Port is not null and not 443)
447_endpointMapping[e.Name] = new(e.UriScheme, resource.Name, e.Port ?? g.Port.Value, g.Port.Value, false, g.External);
Aspire.Hosting.Azure.Tests (10)
Aspire.Hosting.Elasticsearch.Tests (4)
Aspire.Hosting.Garnet.Tests (2)
Aspire.Hosting.Kafka.Tests (3)
Aspire.Hosting.Keycloak.Tests (1)
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.SqlServer.Tests (1)
Aspire.Hosting.Tests (25)
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)