Esempio n. 1
0
 private static ResourceCounter GetCounter(long?number)
 => number.HasValue
         ? ResourceCounter.Quota(number.Value)
         : ResourceCounter.Unlimited;
Esempio n. 2
0
 public ConnectionManager(IKestrelTrace trace, ResourceCounter upgradedConnections)
 {
     UpgradedConnectionCount = upgradedConnections;
     _trace = trace;
 }