PostgresBuilderExtensions.WithPgAdmin<T> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds a pgAdmin 4 administration and development platform for PostgreSQL to the application model. This version the package defaults to the 8.8 tag of the dpage/pgadmin4 container image
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>.