1 write to PrimaryEndpoint
Aspire.Hosting.MySql (1)
MySqlServerResource.cs (1)
22PrimaryEndpoint = new(this, PrimaryEndpointName);
9 references to PrimaryEndpoint
Aspire.Hosting.MySql (6)
MySqlBuilderExtensions.cs (4)
128if (singleInstance.PrimaryEndpoint.IsAllocated) 130var endpoint = singleInstance.PrimaryEndpoint; 152if (mySqlInstance.PrimaryEndpoint.IsAllocated) 154var 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)
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}';";