1 write to PrimaryEndpoint
Aspire.Hosting.PostgreSQL (1)
PostgresServerResource.cs (1)
25PrimaryEndpoint = new(this, PrimaryEndpointName);
9 references to PrimaryEndpoint
Aspire.Hosting.Azure.PostgreSQL (1)
AzurePostgresFlexibleServerResource.cs (1)
90ReferenceExpression.Create($"{InnerResource.PrimaryEndpoint.Property(EndpointProperty.HostAndPort)}") :
Aspire.Hosting.PostgreSQL (7)
PostgresBuilderExtensions.cs (3)
155var port = resource.PrimaryEndpoint.TargetPort ?? throw new DistributedApplicationException("The PostgreSQL REPL port is not available."); 701port = {postgresDatabase.Parent.PrimaryEndpoint.TargetPort} 730var endpoint = postgresInstance.PrimaryEndpoint;
PostgresServerResource.cs (4)
58$"Host={PrimaryEndpoint.Property(EndpointProperty.Host)};Port={PrimaryEndpoint.Property(EndpointProperty.Port)};Username={UserNameReference};Password={PasswordParameter}"); 109public EndpointReferenceExpression Host => PrimaryEndpoint.Property(EndpointProperty.Host); 114public EndpointReferenceExpression Port => PrimaryEndpoint.Property(EndpointProperty.Port);
Aspire.Hosting.PostgreSQL.Tests (1)
AddPostgresTests.cs (1)
681port = {postgresDatabase.Parent.PrimaryEndpoint.TargetPort}