6 instantiations of SqlServerServerResource
Aspire.Hosting.SqlServer (1)
SqlServerBuilderExtensions.cs (1)
34var sqlServer = new SqlServerServerResource(name, passwordParameter);
Aspire.Hosting.SqlServer.Tests (5)
SqlServerPublicApiTests.cs (5)
118var action = () => new SqlServerServerResource(name, password); 132var parent = new SqlServerServerResource("sqlserver",password); 147var parent = new SqlServerServerResource("sqlserver", password); 162var parent = new SqlServerServerResource("sqlserver", password); 177var parent = new SqlServerServerResource("sqlserver", password);
36 references to SqlServerServerResource
Aspire.Hosting.Azure.Sql (11)
AzureSqlExtensions.cs (7)
18private static IResourceBuilder<SqlServerServerResource> PublishAsAzureSqlDatabase(this IResourceBuilder<SqlServerServerResource> builder, bool useProvisioner) 53public static IResourceBuilder<SqlServerServerResource> PublishAsAzureSqlDatabase(this IResourceBuilder<SqlServerServerResource> builder) 64public static IResourceBuilder<SqlServerServerResource> AsAzureSqlDatabase(this IResourceBuilder<SqlServerServerResource> builder) 149public static IResourceBuilder<AzureSqlServerResource> RunAsContainer(this IResourceBuilder<AzureSqlServerResource> builder, Action<IResourceBuilder<SqlServerServerResource>>? configureContainer = null)
AzureSqlServerResource.cs (4)
27/// <param name="innerResource">The <see cref="SqlServerServerResource"/> that this resource wraps.</param> 30public AzureSqlServerResource(SqlServerServerResource innerResource, Action<AzureResourceInfrastructure> configureInfrastructure) 68internal SqlServerServerResource? InnerResource { get; private set; } 83internal void SetInnerResource(SqlServerServerResource innerResource)
Aspire.Hosting.SqlServer (13)
SqlServerBuilderExtensions.cs (9)
26public static IResourceBuilder<SqlServerServerResource> AddSqlServer(this IDistributedApplicationBuilder builder, [ResourceName] string name, IResourceBuilder<ParameterResource>? password = null, int? port = null) 34var sqlServer = new SqlServerServerResource(name, passwordParameter); 52.WithEndpoint(port: port, targetPort: 1433, name: SqlServerServerResource.PrimaryEndpointName) 64/// Adds a SQL Server database to the application model. This is a child resource of a <see cref="SqlServerServerResource"/>. 70public static IResourceBuilder<SqlServerDatabaseResource> AddDatabase(this IResourceBuilder<SqlServerServerResource> builder, [ResourceName] string name, string? databaseName = null) 90public static IResourceBuilder<SqlServerServerResource> WithDataVolume(this IResourceBuilder<SqlServerServerResource> builder, string? name = null, bool isReadOnly = false) 104public static IResourceBuilder<SqlServerServerResource> WithDataBindMount(this IResourceBuilder<SqlServerServerResource> builder, string source, bool isReadOnly = false)
SqlServerDatabaseResource.cs (3)
9public class SqlServerDatabaseResource : Resource, IResourceWithParent<SqlServerServerResource>, IResourceWithConnectionString 14public SqlServerServerResource Parent { get; } 30public SqlServerDatabaseResource(string name, string databaseName, SqlServerServerResource parent) : base(name)
SqlServerServerResource.cs (1)
14/// Initializes a new instance of the <see cref="SqlServerServerResource"/> class.
Aspire.Hosting.SqlServer.Tests (12)
AddSqlServerTests.cs (4)
46var containerResource = Assert.Single(appModel.Resources.OfType<SqlServerServerResource>()); 94var connectionStringResource = Assert.Single(appModel.Resources.OfType<SqlServerServerResource>());
SqlServerPublicApiTests.cs (8)
39IResourceBuilder<SqlServerServerResource> builder = null!; 77IResourceBuilder<SqlServerServerResource> builder = null!; 88IResourceBuilder<SqlServerServerResource> builder = null!; 132var parent = new SqlServerServerResource("sqlserver",password); 147var parent = new SqlServerServerResource("sqlserver", password); 162var parent = new SqlServerServerResource("sqlserver", password); 177var parent = new SqlServerServerResource("sqlserver", password); 192SqlServerServerResource parent = null!;