2 instantiations of AzureSqlServerResource
Aspire.Hosting.Azure.Sql (2)
AzureSqlExtensions.cs (2)
27var resource = new AzureSqlServerResource(builder.Resource, configureInfrastructure); 85var resource = new AzureSqlServerResource(name, configureInfrastructure);
21 references to AzureSqlServerResource
Aspire.Hosting.Azure.Sql (17)
AzureSqlDatabaseResource.cs (4)
11/// A resource that represents an Azure SQL database. This is a child resource of an <see cref="AzureSqlServerResource"/>. 16public class AzureSqlDatabaseResource(string name, string databaseName, AzureSqlServerResource parent) 17: Resource(ThrowIfNull(name)), IResourceWithParent<AzureSqlServerResource>, IResourceWithConnectionString 22public AzureSqlServerResource Parent { get; } = ThrowIfNull(parent);
AzureSqlExtensions.cs (11)
27var resource = new AzureSqlServerResource(builder.Resource, configureInfrastructure); 75public static IResourceBuilder<AzureSqlServerResource> AddAzureSqlServer(this IDistributedApplicationBuilder builder, [ResourceName] string name) 81var azureResource = (AzureSqlServerResource)infrastructure.AspireResource; 85var resource = new AzureSqlServerResource(name, configureInfrastructure); 99public static IResourceBuilder<AzureSqlDatabaseResource> AddDatabase(this IResourceBuilder<AzureSqlServerResource> builder, [ResourceName] string name, string? databaseName = null) 107var azureResource = builder.Resource; 149public static IResourceBuilder<AzureSqlServerResource> RunAsContainer(this IResourceBuilder<AzureSqlServerResource> builder, Action<IResourceBuilder<SqlServerServerResource>>? configureContainer = null) 156var azureResource = builder.Resource; 184private static void RemoveAzureResources(IDistributedApplicationBuilder appBuilder, AzureSqlServerResource azureResource, Dictionary<string, AzureSqlDatabaseResource> azureDatabases)
AzureSqlServerResource.cs (2)
17/// Initializes a new instance of the <see cref="AzureSqlServerResource"/> class. 25/// Initializes a new instance of the <see cref="AzureSqlServerResource"/> class.
Aspire.Hosting.Azure.Tests (4)
AzureBicepResourceTests.cs (4)
1109var azureSql = (AzureSqlServerResource)connectionStringAnnotation.Resource; 1203var azureSql = (AzureSqlServerResource)connectionStringAnnotation.Resource;