File: CustomRetryExecutionStrategy.cs
Web Access
Project: src\tests\Aspire.Npgsql.EntityFrameworkCore.PostgreSQL.Tests\Aspire.Npgsql.EntityFrameworkCore.PostgreSQL.Tests.csproj (Aspire.Npgsql.EntityFrameworkCore.PostgreSQL.Tests)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
using Microsoft.EntityFrameworkCore.Storage;
using Npgsql.EntityFrameworkCore.PostgreSQL;
 
namespace Aspire.Npgsql.EntityFrameworkCore.PostgreSQL.Tests;
 
#pragma warning disable EF1001 // Internal EF Core API usage.
public class CustomRetryExecutionStrategy : NpgsqlRetryingExecutionStrategy
{
    public const int DefaultRetryCount = 123;
 
    public CustomRetryExecutionStrategy(ExecutionStrategyDependencies dependencies) : base(dependencies)
    {
    }
 
    public int RetryCount => DefaultRetryCount;
}
#pragma warning restore EF1001 // Internal EF Core API usage.