4 instantiations of MicrosoftDataSqlClientSettings
Aspire.Microsoft.Data.SqlClient (1)
AspireSqlServerSqlClientExtensions.cs (1)
55
MicrosoftDataSqlClientSettings settings =
new
();
Aspire.Microsoft.Data.SqlClient.Tests (3)
ConfigurationTests.cs (3)
12
=> Assert.Null(new
MicrosoftDataSqlClientSettings
().ConnectionString);
16
=> Assert.False(new
MicrosoftDataSqlClientSettings
().DisableHealthChecks);
20
=> Assert.False(new
MicrosoftDataSqlClientSettings
().DisableTracing);
13 references to MicrosoftDataSqlClientSettings
Aspire.Microsoft.Data.SqlClient (7)
AspireSqlServerSqlClientExtensions.cs (6)
30
/// <exception cref="InvalidOperationException">If required <see cref="
MicrosoftDataSqlClientSettings
.ConnectionString"/> is not provided in configuration section.</exception>
31
public static void AddSqlServerClient(this IHostApplicationBuilder builder, string connectionName, Action<
MicrosoftDataSqlClientSettings
>? configureSettings = null)
42
/// <exception cref="InvalidOperationException">If required <see cref="
MicrosoftDataSqlClientSettings
.ConnectionString"/> is not provided in configuration section.</exception>
43
public static void AddKeyedSqlServerClient(this IHostApplicationBuilder builder, string name, Action<
MicrosoftDataSqlClientSettings
>? configureSettings = null)
51
Action<
MicrosoftDataSqlClientSettings
>? configure, string connectionName, object? serviceKey)
55
MicrosoftDataSqlClientSettings
settings = new();
AssemblyInfo.cs (1)
7
[assembly: ConfigurationSchema("Aspire:Microsoft:Data:SqlClient", typeof(
MicrosoftDataSqlClientSettings
))]
Aspire.Microsoft.Data.SqlClient.Tests (6)
AspireSqlServerSqlClientExtensionsTests.cs (1)
53
static void SetConnectionString(
MicrosoftDataSqlClientSettings
settings) => settings.ConnectionString = ConnectionString;
ConformanceTests.cs (5)
15
public class ConformanceTests : ConformanceTests<SqlConnection,
MicrosoftDataSqlClientSettings
>, IClassFixture<SqlServerContainerFixture>
67
protected override void RegisterComponent(HostApplicationBuilder builder, Action<
MicrosoftDataSqlClientSettings
>? configure = null, string? key = null)
79
protected override void SetHealthCheck(
MicrosoftDataSqlClientSettings
options, bool enabled)
82
protected override void SetTracing(
MicrosoftDataSqlClientSettings
options, bool enabled)
85
protected override void SetMetrics(
MicrosoftDataSqlClientSettings
options, bool enabled)