コード例 #1
0
 public ConnectionManager(IKestrelTrace trace, ResourceCounter upgradedConnections)
 {
     UpgradedConnectionCount = upgradedConnections;
     _trace = trace;
 }
コード例 #2
0
 private static ResourceCounter GetCounter(long?number)
 => number.HasValue
         ? ResourceCounter.Quota(number.Value)
         : ResourceCounter.Unlimited;
コード例 #3
0
 public FrameConnectionManager(IKestrelTrace trace, ResourceCounter normalConnections, ResourceCounter upgradedConnections)
 {
     NormalConnectionCount   = normalConnections;
     UpgradedConnectionCount = upgradedConnections;
     _trace = trace;
 }