AzurePostgresExtensions.cs (14)
139public static IResourceBuilder<AzurePostgresFlexibleServerResource> AddAzurePostgresFlexibleServer(this IDistributedApplicationBuilder builder, [ResourceName] string name)
143var resource = new AzurePostgresFlexibleServerResource(name, infrastructure => ConfigurePostgreSqlInfrastructure(infrastructure, builder));
155public static IResourceBuilder<AzurePostgresFlexibleServerDatabaseResource> AddDatabase(this IResourceBuilder<AzurePostgresFlexibleServerResource> builder, [ResourceName] string name, string? databaseName = null)
163var azureResource = builder.Resource;
205public static IResourceBuilder<AzurePostgresFlexibleServerResource> RunAsContainer(this IResourceBuilder<AzurePostgresFlexibleServerResource> builder, Action<IResourceBuilder<PostgresServerResource>>? configureContainer = null)
212var azureResource = builder.Resource;
250private static void RemoveAzureResources(IDistributedApplicationBuilder appBuilder, AzurePostgresFlexibleServerResource azureResource, Dictionary<string, AzurePostgresFlexibleServerDatabaseResource> azureDatabases)
280public static IResourceBuilder<AzurePostgresFlexibleServerResource> WithPasswordAuthentication(
281this IResourceBuilder<AzurePostgresFlexibleServerResource> builder,
287var azureResource = builder.Resource;
373var azureResource = (AzurePostgresFlexibleServerResource)infrastructure.AspireResource;
416Name = AzurePostgresFlexibleServerResource.GetDatabaseKeyVaultSecretName(database.Key),