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);
}
}
}