Udostępnij za pośrednictwem


PostgresBuilderExtensions.WithPgAdmin<T> Method

Definition

Adds a pgAdmin 4 administration and development platform for PostgreSQL to the application model.

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<T> WithPgAdmin<T> (this Aspire.Hosting.ApplicationModel.IResourceBuilder<T> builder, Action<Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Postgres.PgAdminContainerResource>>? configureContainer = default, string? containerName = default) where T : Aspire.Hosting.ApplicationModel.PostgresServerResource;
static member WithPgAdmin : Aspire.Hosting.ApplicationModel.IResourceBuilder<'T (requires 'T :> Aspire.Hosting.ApplicationModel.PostgresServerResource)> * Action<Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Postgres.PgAdminContainerResource>> * string -> Aspire.Hosting.ApplicationModel.IResourceBuilder<'T (requires 'T :> Aspire.Hosting.ApplicationModel.PostgresServerResource)> (requires 'T :> Aspire.Hosting.ApplicationModel.PostgresServerResource)
<Extension()>
Public Function WithPgAdmin(Of T As PostgresServerResource) (builder As IResourceBuilder(Of T), Optional configureContainer As Action(Of IResourceBuilder(Of PgAdminContainerResource)) = Nothing, Optional containerName As String = Nothing) As IResourceBuilder(Of T)

Type Parameters

T

Parameters

builder
IResourceBuilder<T>

The PostgreSQL server resource builder.

configureContainer
Action<IResourceBuilder<PgAdminContainerResource>>

Callback to configure PgAdmin container resource.

containerName
String

The name of the container (Optional).

Returns

A reference to the IResourceBuilder<T>.

Remarks

This version of the package defaults to the tag of the container image.

Applies to