PostgresServerResource Methods
Class Methods 1 member
A resource that represents a PostgreSQL container.
GetConnectionStringAsync(CancellationToken) Section titled GetConnectionStringAsync(CancellationToken) ValueTask<string?> Gets the connection string for the PostgreSQL server.
public class PostgresServerResource{ public ValueTask<string?> GetConnectionStringAsync( CancellationToken cancellationToken = default(CancellationToken)) { // ... }}Parameters
cancellationToken CancellationToken optional A Threading.CancellationToken to observe while waiting for the task to complete. Returns
ValueTask<string?> A connection string for the PostgreSQL server in the form "Host=host;Port=port;Username=postgres;Password=password".