3 writes to DisableRetry
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL.Tests (3)
EnrichNpgsqlTests.cs (3)
283
builder.EnrichNpgsqlDbContext<TestDbContext>(settings => settings.
DisableRetry
= true);
312
builder.EnrichNpgsqlDbContext<TestDbContext>(settings => settings.
DisableRetry
= false);
330
builder.EnrichNpgsqlDbContext<TestDbContext>(settings => settings.
DisableRetry
= false);
5 references to DisableRetry
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL (4)
AspireEFPostgreSqlExtensions.cs (4)
81
if (!settings.
DisableRetry
)
125
if (!settings.
DisableRetry
|| settings.CommandTimeout.HasValue)
141
if (!settings.
DisableRetry
)
157
throw new InvalidOperationException($"{nameof(NpgsqlEntityFrameworkCorePostgreSQLSettings)}.{nameof(NpgsqlEntityFrameworkCorePostgreSQLSettings.
DisableRetry
)} needs to be set when a custom Execution Strategy is configured.");
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL.Tests (1)
ConfigurationTests.cs (1)
28
=> Assert.False(new NpgsqlEntityFrameworkCorePostgreSQLSettings().
DisableRetry
);