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