4 instantiations of MicrosoftDataSqlClientSettings
Aspire.Microsoft.Data.SqlClient (1)
AspireSqlServerSqlClientExtensions.cs (1)
55MicrosoftDataSqlClientSettings 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> 31public 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> 43public static void AddKeyedSqlServerClient(this IHostApplicationBuilder builder, string name, Action<MicrosoftDataSqlClientSettings>? configureSettings = null) 51Action<MicrosoftDataSqlClientSettings>? configure, string connectionName, object? serviceKey) 55MicrosoftDataSqlClientSettings settings = new();
AssemblyInfo.cs (1)
7[assembly: ConfigurationSchema("Aspire:Microsoft:Data:SqlClient", typeof(MicrosoftDataSqlClientSettings))]
Aspire.Microsoft.Data.SqlClient.Tests (6)
AspireSqlServerSqlClientExtensionsTests.cs (1)
53static void SetConnectionString(MicrosoftDataSqlClientSettings settings) => settings.ConnectionString = ConnectionString;
ConformanceTests.cs (5)
15public class ConformanceTests : ConformanceTests<SqlConnection, MicrosoftDataSqlClientSettings>, IClassFixture<SqlServerContainerFixture> 67protected override void RegisterComponent(HostApplicationBuilder builder, Action<MicrosoftDataSqlClientSettings>? configure = null, string? key = null) 79protected override void SetHealthCheck(MicrosoftDataSqlClientSettings options, bool enabled) 82protected override void SetTracing(MicrosoftDataSqlClientSettings options, bool enabled) 85protected override void SetMetrics(MicrosoftDataSqlClientSettings options, bool enabled)