5 instantiations of NpgsqlSettings
Aspire.Npgsql (1)
AspirePostgreSqlNpgsqlExtensions.cs (1)
59
NpgsqlSettings 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>
32
public 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>
47
public static void AddKeyedNpgsqlDataSource(this IHostApplicationBuilder builder, string name, Action<
NpgsqlSettings
>? configureSettings = null, Action<NpgsqlDataSourceBuilder>? configureDataSourceBuilder = null)
55
Action<
NpgsqlSettings
>? configureSettings, string connectionName, object? serviceKey, Action<NpgsqlDataSourceBuilder>? configureDataSourceBuilder)
59
NpgsqlSettings
settings = new();
105
private 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)
53
static void SetConnectionString(
NpgsqlSettings
settings) => settings.ConnectionString = ConnectionString;
ConformanceTests.cs (5)
16
public class ConformanceTests : ConformanceTests<NpgsqlDataSource,
NpgsqlSettings
>, IClassFixture<PostgreSQLContainerFixture>
74
protected override void RegisterComponent(HostApplicationBuilder builder, Action<
NpgsqlSettings
>? configure = null, string? key = null)
86
protected override void SetHealthCheck(
NpgsqlSettings
options, bool enabled)
89
protected override void SetTracing(
NpgsqlSettings
options, bool enabled)
92
protected override void SetMetrics(
NpgsqlSettings
options, bool enabled)