5 instantiations of NpgsqlSettings
Aspire.Npgsql (1)
AspirePostgreSqlNpgsqlExtensions.cs (1)
59NpgsqlSettings settings = new();
Aspire.Npgsql.Tests (4)
ConfigurationTests.cs (4)
12=> Assert.Null(new NpgsqlSettings().ConnectionString); 16=> Assert.False(new NpgsqlSettings().DisableHealthChecks); 20=> Assert.False(new NpgsqlSettings().DisableTracing); 24=> Assert.False(new NpgsqlSettings().DisableMetrics);
14 references to NpgsqlSettings
Aspire.Npgsql (8)
AspirePostgreSqlNpgsqlExtensions.cs (7)
31/// <exception cref="InvalidOperationException">Thrown when mandatory <see cref="NpgsqlSettings.ConnectionString"/> is not provided.</exception> 32public static void AddNpgsqlDataSource(this IHostApplicationBuilder builder, string connectionName, Action<NpgsqlSettings>? configureSettings = null, Action<NpgsqlDataSourceBuilder>? configureDataSourceBuilder = null) 46/// <exception cref="InvalidOperationException">Thrown when mandatory <see cref="NpgsqlSettings.ConnectionString"/> is not provided.</exception> 47public static void AddKeyedNpgsqlDataSource(this IHostApplicationBuilder builder, string name, Action<NpgsqlSettings>? configureSettings = null, Action<NpgsqlDataSourceBuilder>? configureDataSourceBuilder = null) 55Action<NpgsqlSettings>? configureSettings, string connectionName, object? serviceKey, Action<NpgsqlDataSourceBuilder>? configureDataSourceBuilder) 59NpgsqlSettings settings = new(); 105private static void RegisterNpgsqlServices(this IHostApplicationBuilder builder, NpgsqlSettings settings, string connectionName, object? serviceKey, Action<NpgsqlDataSourceBuilder>? configureDataSourceBuilder)
AssemblyInfo.cs (1)
7[assembly: ConfigurationSchema("Aspire:Npgsql", typeof(NpgsqlSettings))]
Aspire.Npgsql.Tests (6)
AspirePostgreSqlNpgsqlExtensionsTests.cs (1)
53static void SetConnectionString(NpgsqlSettings settings) => settings.ConnectionString = ConnectionString;
ConformanceTests.cs (5)
16public class ConformanceTests : ConformanceTests<NpgsqlDataSource, NpgsqlSettings>, IClassFixture<PostgreSQLContainerFixture> 74protected override void RegisterComponent(HostApplicationBuilder builder, Action<NpgsqlSettings>? configure = null, string? key = null) 86protected override void SetHealthCheck(NpgsqlSettings options, bool enabled) 89protected override void SetTracing(NpgsqlSettings options, bool enabled) 92protected override void SetMetrics(NpgsqlSettings options, bool enabled)