18 references to AzurePostgresFlexibleServerResource
Aspire.Hosting.Azure.PostgreSQL (18)
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),
AzurePostgresFlexibleServerDatabaseResource.cs (4)
11/// A resource that represents an Azure PostgreSQL database. This is a child resource of an <see cref="AzurePostgresFlexibleServerResource"/>. 16public class AzurePostgresFlexibleServerDatabaseResource(string name, string databaseName, AzurePostgresFlexibleServerResource postgresParentResource) 17: Resource(ThrowIfNull(name)), IResourceWithParent<AzurePostgresFlexibleServerResource>, IResourceWithConnectionString 22public AzurePostgresFlexibleServerResource Parent { get; } = ThrowIfNull(postgresParentResource);