2 instantiations of AzureSqlServerResource
Aspire.Hosting.Azure.Sql (2)
AzureSqlExtensions.cs (2)
27
var resource = new
AzureSqlServerResource
(builder.Resource, configureInfrastructure);
85
var 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
"/>.
16
public class AzureSqlDatabaseResource(string name, string databaseName,
AzureSqlServerResource
parent)
17
: Resource(ThrowIfNull(name)), IResourceWithParent<
AzureSqlServerResource
>, IResourceWithConnectionString
22
public
AzureSqlServerResource
Parent { get; } = ThrowIfNull(parent);
AzureSqlExtensions.cs (11)
27
var
resource = new AzureSqlServerResource(builder.Resource, configureInfrastructure);
75
public static IResourceBuilder<
AzureSqlServerResource
> AddAzureSqlServer(this IDistributedApplicationBuilder builder, [ResourceName] string name)
81
var
azureResource = (
AzureSqlServerResource
)infrastructure.AspireResource;
85
var
resource = new AzureSqlServerResource(name, configureInfrastructure);
99
public static IResourceBuilder<AzureSqlDatabaseResource> AddDatabase(this IResourceBuilder<
AzureSqlServerResource
> builder, [ResourceName] string name, string? databaseName = null)
107
var
azureResource = builder.Resource;
149
public static IResourceBuilder<
AzureSqlServerResource
> RunAsContainer(this IResourceBuilder<
AzureSqlServerResource
> builder, Action<IResourceBuilder<SqlServerServerResource>>? configureContainer = null)
156
var
azureResource = builder.Resource;
184
private 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)
1109
var
azureSql = (
AzureSqlServerResource
)connectionStringAnnotation.Resource;
1203
var
azureSql = (
AzureSqlServerResource
)connectionStringAnnotation.Resource;