6 instantiations of SqlServerServerResource
Aspire.Hosting.SqlServer (1)
SqlServerBuilderExtensions.cs (1)
34
var sqlServer = new
SqlServerServerResource
(name, passwordParameter);
Aspire.Hosting.SqlServer.Tests (5)
SqlServerPublicApiTests.cs (5)
118
var action = () => new
SqlServerServerResource
(name, password);
132
var parent = new
SqlServerServerResource
("sqlserver",password);
147
var parent = new
SqlServerServerResource
("sqlserver", password);
162
var parent = new
SqlServerServerResource
("sqlserver", password);
177
var parent = new
SqlServerServerResource
("sqlserver", password);
36 references to SqlServerServerResource
Aspire.Hosting.Azure.Sql (11)
AzureSqlExtensions.cs (7)
18
private static IResourceBuilder<
SqlServerServerResource
> PublishAsAzureSqlDatabase(this IResourceBuilder<
SqlServerServerResource
> builder, bool useProvisioner)
53
public static IResourceBuilder<
SqlServerServerResource
> PublishAsAzureSqlDatabase(this IResourceBuilder<
SqlServerServerResource
> builder)
64
public static IResourceBuilder<
SqlServerServerResource
> AsAzureSqlDatabase(this IResourceBuilder<
SqlServerServerResource
> builder)
149
public 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>
30
public AzureSqlServerResource(
SqlServerServerResource
innerResource, Action<AzureResourceInfrastructure> configureInfrastructure)
68
internal
SqlServerServerResource
? InnerResource { get; private set; }
83
internal void SetInnerResource(
SqlServerServerResource
innerResource)
Aspire.Hosting.SqlServer (13)
SqlServerBuilderExtensions.cs (9)
26
public static IResourceBuilder<
SqlServerServerResource
> AddSqlServer(this IDistributedApplicationBuilder builder, [ResourceName] string name, IResourceBuilder<ParameterResource>? password = null, int? port = null)
34
var
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
"/>.
70
public static IResourceBuilder<SqlServerDatabaseResource> AddDatabase(this IResourceBuilder<
SqlServerServerResource
> builder, [ResourceName] string name, string? databaseName = null)
90
public static IResourceBuilder<
SqlServerServerResource
> WithDataVolume(this IResourceBuilder<
SqlServerServerResource
> builder, string? name = null, bool isReadOnly = false)
104
public static IResourceBuilder<
SqlServerServerResource
> WithDataBindMount(this IResourceBuilder<
SqlServerServerResource
> builder, string source, bool isReadOnly = false)
SqlServerDatabaseResource.cs (3)
9
public class SqlServerDatabaseResource : Resource, IResourceWithParent<
SqlServerServerResource
>, IResourceWithConnectionString
14
public
SqlServerServerResource
Parent { get; }
30
public 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)
46
var
containerResource = Assert.Single(appModel.Resources.OfType<
SqlServerServerResource
>());
94
var
connectionStringResource = Assert.Single(appModel.Resources.OfType<
SqlServerServerResource
>());
SqlServerPublicApiTests.cs (8)
39
IResourceBuilder<
SqlServerServerResource
> builder = null!;
77
IResourceBuilder<
SqlServerServerResource
> builder = null!;
88
IResourceBuilder<
SqlServerServerResource
> builder = null!;
132
var
parent = new SqlServerServerResource("sqlserver",password);
147
var
parent = new SqlServerServerResource("sqlserver", password);
162
var
parent = new SqlServerServerResource("sqlserver", password);
177
var
parent = new SqlServerServerResource("sqlserver", password);
192
SqlServerServerResource
parent = null!;