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