<PackageReference Include="Polly" Version="5.0.3" />

SemaphoreSlimFactory

public static class SemaphoreSlimFactory
A factory class for the different implementations of SemaphoreSlim used by Polly.
using System.Threading; namespace Polly.Utilities { public static class SemaphoreSlimFactory { public static SemaphoreSlim CreateSemaphoreSlim(int maxParallelization) { return new SemaphoreSlim(maxParallelization, maxParallelization); } } }