8 writes to TargetPort
Aspire.Hosting (2)
ProjectResourceBuilderExtensions.cs (2)
530httpEndpoint.TargetPort = httpsEndpoint.TargetPort = defaultEndpointTargetPort;
Aspire.Hosting.Azure.AppContainers (1)
AzureContainerAppsInfrastructure.cs (1)
340endpoint.TargetPort = tp;
Aspire.Hosting.Tests (5)
DistributedApplicationTests.cs (2)
693e.TargetPort = 1234; 728e.TargetPort = 1234;
WithEndpointTests.cs (3)
61endpoint.TargetPort = null; 65endpoint.TargetPort = 2001; 77endpoint.TargetPort = 2000;
57 references to TargetPort
Aspire.Hosting (7)
ApplicationModel\EndpointReference.cs (1)
82public int? TargetPort => EndpointAnnotation.TargetPort;
Dcp\ApplicationExecutor.cs (3)
1626ContainerPort = ea.TargetPort, 1866throw new InvalidOperationException($"The endpoint '{ea.Name}' for container resource '{modelResourceName}' must specify the {nameof(EndpointAnnotation.TargetPort)} value"); 1878throw new InvalidOperationException($"The endpoint '{ea.Name}' for resource '{modelResourceName}' is not using a proxy, and it has a value of {nameof(EndpointAnnotation.Port)} property that is different from the value of {nameof(EndpointAnnotation.TargetPort)} property. For proxy-less endpoints they must match.");
ProjectResourceBuilderExtensions.cs (2)
529var defaultEndpointTargetPort = httpEndpoint.TargetPort ?? httpsEndpoint.TargetPort;
Publishing\ManifestPublishingContext.cs (1)
413int? targetPort = (resource, endpoint.UriScheme, endpoint.TargetPort, endpoint.Port) switch
Aspire.Hosting.Azure.AppContainers (2)
AzureContainerAppsInfrastructure.cs (2)
288int? targetPort = (resource, endpoint.UriScheme, endpoint.TargetPort, endpoint.Port) switch 345var endpointsByTargetPort = endpoints.GroupBy(e => e.TargetPort)
Aspire.Hosting.Azure.Tests (5)
AzureFunctionsTests.cs (5)
38Assert.Equal(7071, endpointAnnotation.TargetPort); 53Assert.Null(endpointAnnotation.TargetPort); 67Assert.Equal(7072, endpointAnnotation.TargetPort); 81Assert.Null(endpointAnnotation.TargetPort); 95Assert.Null(endpointAnnotation.TargetPort);
Aspire.Hosting.Elasticsearch.Tests (4)
AddElasticsearchTests.cs (4)
33Assert.Equal(9200, primaryEndpoint.TargetPort); 42Assert.Equal(9300, internalEndpoint.TargetPort); 95Assert.Equal(9200, primaryEndpoint.TargetPort); 104Assert.Equal(9300, internalEndpoint.TargetPort);
Aspire.Hosting.Garnet.Tests (2)
AddGarnetTests.cs (2)
28Assert.Equal(6379, endpoint.TargetPort); 56Assert.Equal(6379, endpoint.TargetPort);
Aspire.Hosting.Kafka.Tests (3)
AddKafkaTests.cs (3)
32Assert.Equal(9092, primaryEndpoint.TargetPort); 41Assert.Equal(9093, internalEndpoint.TargetPort); 177Assert.Equal(8080, kafkaUiEndpoint.TargetPort);
Aspire.Hosting.Keycloak.Tests (1)
KeycloakResourceBuilderTests.cs (1)
30Assert.Equal(8080, endpoint.TargetPort);
Aspire.Hosting.Milvus.Tests (3)
AddMilvusTests.cs (3)
40Assert.Equal(MilvusPortGrpc, endpoint.TargetPort); 71Assert.Equal(MilvusPortGrpc, endpoint.TargetPort); 199Assert.Equal(MilvusPortGrpc, grpcEndpoint.TargetPort);
Aspire.Hosting.MongoDB.Tests (2)
AddMongoDBTests.cs (2)
30Assert.Equal(27017, endpoint.TargetPort); 58Assert.Equal(27017, endpoint.TargetPort);
Aspire.Hosting.MySql.Tests (2)
AddMySqlTests.cs (2)
55Assert.Equal(3306, endpoint.TargetPort); 95Assert.Equal(3306, endpoint.TargetPort);
Aspire.Hosting.Nats.Tests (2)
AddNatsTests.cs (2)
100Assert.Equal(4222, endpoint.TargetPort); 146Assert.Equal(4222, endpoint.TargetPort);
Aspire.Hosting.Oracle.Tests (3)
AddOracleTests.cs (3)
54Assert.Equal(1521, endpoint.TargetPort); 94Assert.Equal(1521, endpoint.TargetPort); 177Assert.Equal(1521, endpoint.TargetPort);
Aspire.Hosting.PostgreSQL.Tests (3)
AddPostgresTests.cs (3)
64Assert.Equal(5432, endpoint.TargetPort); 119Assert.Equal(5432, endpoint.TargetPort); 211Assert.Equal(5432, endpoint.TargetPort);
Aspire.Hosting.Qdrant.Tests (5)
AddQdrantTests.cs (5)
59Assert.Equal(QdrantPortGrpc, endpoint.TargetPort); 99Assert.Equal(QdrantPortHttp, endpoint.TargetPort); 132Assert.Equal(QdrantPortGrpc, endpoint.TargetPort); 295Assert.Equal(6334, grpcEndpoint.TargetPort); 303Assert.Equal(6333, httpEndpoint.TargetPort);
Aspire.Hosting.RabbitMQ.Tests (2)
AddRabbitMQTests.cs (2)
57Assert.Equal(5672, primaryEndpoint.TargetPort); 68Assert.Equal(15672, mangementEndpoint.TargetPort);
Aspire.Hosting.Redis.Tests (2)
AddRedisTests.cs (2)
37Assert.Equal(6379, endpoint.TargetPort); 65Assert.Equal(6379, endpoint.TargetPort);
Aspire.Hosting.SqlServer.Tests (1)
AddSqlServerTests.cs (1)
50Assert.Equal(1433, endpoint.TargetPort);
Aspire.Hosting.Tests (6)
WithEndpointTests.cs (6)
50Assert.Equal(2000, endpoint.TargetPort); 54Assert.Null(endpoint.TargetPort); 58Assert.Equal(2000, endpoint.TargetPort); 62Assert.Null(endpoint.TargetPort); 66Assert.Equal(2001, endpoint.TargetPort); 221Assert.Equal(3001, endpoints[0].TargetPort);
Aspire.Hosting.Valkey.Tests (2)
AddValkeyTests.cs (2)
28Assert.Equal(6379, endpoint.TargetPort); 56Assert.Equal(6379, endpoint.TargetPort);