File: CustomRetryExecutionStrategy.cs
Web Access
Project: src\tests\Aspire.Microsoft.EntityFrameworkCore.SqlServer.Tests\Aspire.Microsoft.EntityFrameworkCore.SqlServer.Tests.csproj (Aspire.Microsoft.EntityFrameworkCore.SqlServer.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;
using Microsoft.EntityFrameworkCore.Storage;
 
namespace Aspire.Microsoft.EntityFrameworkCore.SqlServer.Tests;
 
#pragma warning disable EF1001 // Internal EF Core API usage.
public class CustomRetryExecutionStrategy : SqlServerRetryingExecutionStrategy
{
    public const int DefaultRetryCount = 123;
 
    public CustomRetryExecutionStrategy(ExecutionStrategyDependencies dependencies) : base(dependencies)
    {
    }
 
    public int RetryCount => DefaultRetryCount;
}
#pragma warning restore EF1001 // Internal EF Core API usage.