1 write to PrimaryEndpoint
Aspire.Hosting.MySql (1)
MySqlServerResource.cs (1)
26
PrimaryEndpoint
= new(this, PrimaryEndpointName);
9 references to PrimaryEndpoint
Aspire.Hosting.MySql (6)
MySqlBuilderExtensions.cs (2)
249
var endpoint = singleInstance.
PrimaryEndpoint
;
388
var endpoint = mySqlInstance.
PrimaryEndpoint
;
MySqlServerResource.cs (4)
38
public EndpointReferenceExpression Host =>
PrimaryEndpoint
.Property(EndpointProperty.Host);
43
public EndpointReferenceExpression Port =>
PrimaryEndpoint
.Property(EndpointProperty.Port);
55
$"Server={
PrimaryEndpoint
.Property(EndpointProperty.Host)};Port={
PrimaryEndpoint
.Property(EndpointProperty.Port)};User ID={DefaultUserName};Password={PasswordParameter}");
Aspire.Hosting.MySql.Tests (3)
AddMySqlTests.cs (3)
250
Assert.Equal($"{mysql.Resource.Name}:{mysql.Resource.
PrimaryEndpoint
.TargetPort}", config["PMA_HOST"]);
282
string pattern1 = $@"\$cfg\['Servers'\]\[\$i\]\['host'\] = '{mysql1.Resource.Name}:{mysql1.Resource.
PrimaryEndpoint
.TargetPort}';";
283
string pattern2 = $@"\$cfg\['Servers'\]\[\$i\]\['host'\] = '{mysql2.Resource.Name}:{mysql2.Resource.
PrimaryEndpoint
.TargetPort}';";