15 references to TargetPort
Aspire.Hosting.Azure.EventHubs (2)
AzureEventHubsExtensions.cs (2)
157context.EnvironmentVariables.Add("BLOB_SERVER", $"{blobEndpoint.Resource.Name}:{blobEndpoint.TargetPort}"); 158context.EnvironmentVariables.Add("METADATA_SERVER", $"{tableEndpoint.Resource.Name}:{tableEndpoint.TargetPort}");
Aspire.Hosting.Milvus (1)
MilvusBuilderExtensions.cs (1)
193context.EnvironmentVariables.Add("MILVUS_URL", $"{resource.PrimaryEndpoint.Scheme}://{resource.Name}:{resource.PrimaryEndpoint.TargetPort}");
Aspire.Hosting.MySql (2)
MySqlBuilderExtensions.cs (2)
135context.EnvironmentVariables.Add("PMA_HOST", $"{endpoint.Resource.Name}:{endpoint.TargetPort}"); 158writer.WriteLine($"$cfg['Servers'][$i]['host'] = '{endpoint.Resource.Name}:{endpoint.TargetPort}';");
Aspire.Hosting.MySql.Tests (3)
AddMySqlTests.cs (3)
249Assert.Equal($"{mysql.Resource.Name}:{mysql.Resource.PrimaryEndpoint.TargetPort}", config["PMA_HOST"]); 290string pattern1 = $@"\$cfg\['Servers'\]\[\$i\]\['host'\] = '{mysql1.Resource.Name}:{mysql1.Resource.PrimaryEndpoint.TargetPort}';"; 291string pattern2 = $@"\$cfg\['Servers'\]\[\$i\]\['host'\] = '{mysql2.Resource.Name}:{mysql2.Resource.PrimaryEndpoint.TargetPort}';";
Aspire.Hosting.PostgreSQL (1)
PostgresBuilderExtensions.cs (1)
190writer.WriteNumber("Port", (int)endpoint.TargetPort!);
Aspire.Hosting.PostgreSQL.Tests (1)
AddPostgresTests.cs (1)
615port = {postgresDatabase.Parent.PrimaryEndpoint.TargetPort}
Aspire.Hosting.Redis.Tests (3)
RedisFunctionalTests.cs (3)
84var path = $"/apiv2/server/R:{redis.Resource.Name}:{endpoint.TargetPort}:0/info"; 271Assert.Equal(redis1.Resource.PrimaryEndpoint.TargetPort, db.Port); 279Assert.Equal(redis2.Resource.PrimaryEndpoint.TargetPort, db.Port);
Aspire.Hosting.Tests (2)
ProjectResourceTests.cs (2)
634Assert.Equal($"http://{expectedHost}:{http.TargetPort};https://{expectedHost}:{https.TargetPort}", config["ASPNETCORE_URLS"]);