8 references to AzurePostgresFlexibleServerDatabaseResource
Aspire.Hosting.Azure.PostgreSQL (5)
AzurePostgresExtensions.cs (5)
155
public static IResourceBuilder<
AzurePostgresFlexibleServerDatabaseResource
> AddDatabase(this IResourceBuilder<AzurePostgresFlexibleServerResource> builder, [ResourceName] string name, string? databaseName = null)
164
var
azurePostgresDatabase = new AzurePostgresFlexibleServerDatabaseResource(name, databaseName, azureResource);
214
.OfType<
AzurePostgresFlexibleServerDatabaseResource
>()
238
throw new InvalidOperationException($"Could not find a {nameof(
AzurePostgresFlexibleServerDatabaseResource
)} with name {database.Key}.");
250
private static void RemoveAzureResources(IDistributedApplicationBuilder appBuilder, AzurePostgresFlexibleServerResource azureResource, Dictionary<string,
AzurePostgresFlexibleServerDatabaseResource
> azureDatabases)
Aspire.Hosting.Azure.Tests (3)
AzurePostgresExtensionsTests.cs (3)
261
IResourceBuilder<
AzurePostgresFlexibleServerDatabaseResource
> db1 = null!;
262
IResourceBuilder<
AzurePostgresFlexibleServerDatabaseResource
> db2 = null!;
337
IResourceBuilder<
AzurePostgresFlexibleServerDatabaseResource
>? db = null;