// For Testing internal ConnectionLimitMiddleware(Func <T, Task> next, ResourceCounter concurrentConnectionCounter, KestrelTrace trace) { _next = next; _concurrentConnectionCounter = concurrentConnectionCounter; _trace = trace; }
public ConnectionLimitMiddleware(Func <T, Task> next, long connectionLimit, KestrelTrace trace) : this(next, ResourceCounter.Quota(connectionLimit), trace) { }