1 write to PrimaryEndpoint
Aspire.Hosting.MySql (1)
MySqlServerResource.cs (1)
22
PrimaryEndpoint
= new(this, PrimaryEndpointName);
9 references to PrimaryEndpoint
Aspire.Hosting.MySql (6)
MySqlBuilderExtensions.cs (4)
128
if (singleInstance.
PrimaryEndpoint
.IsAllocated)
130
var endpoint = singleInstance.
PrimaryEndpoint
;
152
if (mySqlInstance.
PrimaryEndpoint
.IsAllocated)
154
var endpoint = mySqlInstance.
PrimaryEndpoint
;
MySqlServerResource.cs (2)
41
$"Server={
PrimaryEndpoint
.Property(EndpointProperty.Host)};Port={
PrimaryEndpoint
.Property(EndpointProperty.Port)};User ID=root;Password={PasswordParameter}");
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}';";