PostgresServerResource
Class net10.0
A resource that represents a PostgreSQL container.
namespace Aspire.Hosting.ApplicationModel;
public class PostgresServerResource : Aspire.Hosting.ApplicationModel.ContainerResource, Aspire.Hosting.ApplicationModel.IManifestExpressionProvider, Aspire.Hosting.ApplicationModel.IResource, Aspire.Hosting.ApplicationModel.IResourceWithConnectionString, Aspire.Hosting.ApplicationModel.IValueProvider, Aspire.Hosting.ApplicationModel.IValueWithReferences{ // ...} ContainerResourceIManifestExpressionProviderIResourceIResourceWithConnectionStringIValueProviderIValueWithReferences
12 members
Constructors1
Section titled ConstructorsPostgresServerResource(string, ParameterResource?, ParameterResource) Initializes a new instance of the
PostgresServerResource class. Properties10
Section titled PropertiesConnectionStringExpressiongetReferenceExpression Gets the connection string expression for the PostgreSQL server.
DatabasesgetIReadOnlyDictionary<string, string> A dictionary where the key is the resource name and the value is the database name.
HostgetEndpointReferenceExpression Gets the host endpoint reference for this service.
JdbcConnectionStringgetReferenceExpression Gets the JDBC connection string for the PostgreSQL server.
PasswordParameterget; setParameterResource Gets or sets the parameter that contains the PostgreSQL server password.
PortgetEndpointReferenceExpression Gets the endpoint reference expression that identifies the port for this endpoint.
PrimaryEndpointgetEndpointReference Gets the primary endpoint for the PostgreSQL server.
UriExpressiongetReferenceExpression Gets the connection URI expression for the PostgreSQL server.
UserNameParameterget; setParameterResource? Gets or sets the parameter that contains the PostgreSQL server user name.
UserNameReferencegetReferenceExpression Gets a reference to the user name for the PostgreSQL server.