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