1 write to PrimaryEndpoint
Aspire.Hosting.MySql (1)
MySqlServerResource.cs (1)
27PrimaryEndpoint = new(this, PrimaryEndpointName);
10 references to PrimaryEndpoint
Aspire.Hosting.MySql (7)
MySqlBuilderExtensions.cs (3)
122var port = resource.PrimaryEndpoint.TargetPort ?? throw new DistributedApplicationException("The MySQL REPL port is not available."); 343var endpoint = singleInstance.PrimaryEndpoint; 492var endpoint = mySqlInstance.PrimaryEndpoint;
MySqlServerResource.cs (4)
39public EndpointReferenceExpression Host => PrimaryEndpoint.Property(EndpointProperty.Host); 44public EndpointReferenceExpression Port => PrimaryEndpoint.Property(EndpointProperty.Port); 56$"Server={PrimaryEndpoint.Property(EndpointProperty.Host)};Port={PrimaryEndpoint.Property(EndpointProperty.Port)};User ID={DefaultUserName};Password={PasswordParameter}");
Aspire.Hosting.MySql.Tests (3)
AddMySqlTests.cs (3)
267Assert.Equal($"{mysql.Resource.Name}:{mysql.Resource.PrimaryEndpoint.TargetPort}", config["PMA_HOST"]); 299string pattern1 = $@"\$cfg\['Servers'\]\[\$i\]\['host'\] = '{mysql1.Resource.Name}:{mysql1.Resource.PrimaryEndpoint.TargetPort}';"; 300string pattern2 = $@"\$cfg\['Servers'\]\[\$i\]\['host'\] = '{mysql2.Resource.Name}:{mysql2.Resource.PrimaryEndpoint.TargetPort}';";